Functions for managing and rendering framebuffers. More...
Go to the source code of this file.
Classes | |
| struct | framebuffer_t |
| Data format for framebuffers. More... | |
| struct | framebuffer_font_t |
| Used to describe a font for the framebuffer to use. More... | |
Macros | |
| #define | VIDEO_WIDTH 640 |
| #define | VIDEO_HEIGHT 480 |
Functions | |
| void | framebuffer_copy_rgba_into (framebuffer_t *framebuffer, const uint32_t *rgba, vec2i position, vec2i size) |
| Copys RGBA8888 data into a frame buffer. | |
| void | framebuffer_fill_rgba (framebuffer_t *framebuffer, uint32_t rgba, vec2i a, vec2i b) |
| Fills a section of the frame buffer with RGBA8888 data. | |
| void | framebuffer_put_text (framebuffer_t *framebuffer, uint32_t foreground, uint32_t background, vec2i position, const framebuffer_font_t *font, const char *str) |
| Renders a bitmap font to the framebuffer. | |
Functions for managing and rendering framebuffers.
Able to fill colors, copy data to and from, as well as render text into frame buffers.
|
extern |
Copys RGBA8888 data into a frame buffer.
Copys data into a position of the framebuffer. Converts into the YUY data of the framebuffer.
Blends as it goes. Very nice
| framebuffer | Framebuffer to render into. |
| rgba | RGBA8888 color data of width x height. |
| x_pos | x position in the frame buffer. |
| y_pos | y position in the frame buffer. |
|
extern |
Fills a section of the frame buffer with RGBA8888 data.
Fills the frame buffer with a color while doing blending as needed
| framebuffer | Framebuffer to render into. |
| rgba | RGBA8888 color |
| a | - Start position of the fill |
| b | - Stop position of the fill |
|
extern |
Renders a bitmap font to the framebuffer.
Renders a bitmap font to the frame buffer using the specified font. Special characters are not supported. It will just render that slot in the font.
| framebuffer | Framebuffer to render into. |
| foreground | RGBA8888 Color of the text itself |
| background | RGBA8888 Color of the background |
| position | Pixel position of the top left corner of the text. |
| font | Font to use |
| str | Zero terminated string to render |