 |
Xyris
0.5
|
Go to the documentation of this file.
28 static Framebuffer* info = NULL;
29 static void* backbuffer = NULL;
30 static bool initialized =
false;
53 void pixel(uint32_t x, uint32_t y, uint32_t color)
58 if ((x <= info->getWidth()) && (y <= info->getHeight())) {
71 void putrect(uint32_t x, uint32_t y, uint32_t w, uint32_t h, uint32_t color)
76 for (uint32_t curr_x = x; curr_x <= x + w; curr_x++) {
77 for (uint32_t curr_y = y; curr_y <= y + h; curr_y++) {
79 pixel(curr_x, curr_y, color);
uint8_t getGreenMaskShift()
void pixel(uint32_t x, uint32_t y, uint32_t color)
Draws a pixel at a given coordinate.
void swap()
Swap the data on backbuffer to memory video buffer and show in the screen.
Standard string and memory utility library.
void resetDoubleBuffer()
Fill the backbuffer with '0'.
uint8_t getBlueMaskShift()
uint8_t getRedMaskShift()
void * memcpy(void *dstptr, const void *srcptr, size_t size)
static void Debug(const char *tag, const char *fmt,...)
Liballoc heap implementation.
void mapKernelRangeVirtual(Section sect)
Map an address range into the kernel virtual address space.
void * memset(void *bufptr, int value, size_t size)
Sets the number of bytes in memory at ptr to the value.
void putrect(uint32_t x, uint32_t y, uint32_t w, uint32_t h, uint32_t color)
Draws and fills a rectangle of a given width and height, and color at the provided coordinates.
void init(Framebuffer *fb)
Initializes the framebuffer (if available)