Simple console. More...
#include "powerblocks/core/graphics/framebuffer.h"Go to the source code of this file.
Functions | |
| void | console_initialize (framebuffer_t *framebuffer, const framebuffer_font_t *font) |
| Initializes the visual console. | |
| void | console_set_cursor (vec2i cursor_position) |
| Sets the cursor position of the console. | |
| void | console_set_text_color (uint32_t foreground, uint32_t background) |
| Sets the color text color. | |
| void | console_put (const char *string) |
| Puts a string into the console. | |
Variables | |
| vec2i | console_cursor_position |
| uint32_t | console_foreground_color |
| uint32_t | console_background_color |
| const framebuffer_font_t * | console_font |
Simple console.
Provides a simple console for quick debugging.
|
extern |
Initializes the visual console.
Attaches to a frame buffer. Will write directly into it when displaying text.
Sets stdout into the console.
Sets console position back to 0,0
| framebuffer | Framebuffer to attach to |
|
extern |
Puts a string into the console.
Prints a string into the console. Will update cursor positions.asm '
' will generate a new line.
|
extern |
Sets the cursor position of the console.
Set the position of the cursor in pixels.
|
extern |
Sets the color text color.
Sets the color text color.