![]() |
Xyris
0.5
|
Namespaces | |
Font | |
Data Structures | |
class | Framebuffer |
Enumerations | |
enum | FramebufferMemoryModel { Undefined_FBMM = 0, RGB_FBMM = 1 } |
Functions | |
Framebuffer * | getFramebuffer () |
void | init (Framebuffer *fb) |
void | pixel (uint32_t x, uint32_t y, uint32_t color) |
void | putrect (uint32_t x, uint32_t y, uint32_t w, uint32_t h, uint32_t color) |
void | resetDoubleBuffer () |
void | swap () |
Enumerator | |
---|---|
Undefined_FBMM | |
RGB_FBMM |
Definition at line 16 of file framebuffer.hpp.
Framebuffer * Graphics::getFramebuffer | ( | ) |
Get a pointer to the active framebuffer.
Definition at line 81 of file framebuffer.cpp.
void Graphics::init | ( | Framebuffer * | fb | ) |
Initializes the framebuffer (if available)
Definition at line 32 of file graphics.cpp.
void Graphics::pixel | ( | uint32_t | x, |
uint32_t | y, | ||
uint32_t | color | ||
) |
Draws a pixel at a given coordinate.
x | X-axis coordinate |
y | Y-axis coordinate |
color | Hex color |
Definition at line 53 of file graphics.cpp.
void Graphics::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.
x | X-axis coordinate |
y | Y-axis coordinate |
w | Width |
h | Height |
color | Hex color |
Definition at line 71 of file graphics.cpp.
void Graphics::resetDoubleBuffer | ( | ) |
Fill the backbuffer with '0'.
Definition at line 86 of file graphics.cpp.
void Graphics::swap | ( | ) |
Swap the data on backbuffer to memory video buffer and show in the screen.
Definition at line 93 of file graphics.cpp.