PowerBlocks SDK
 
Loading...
Searching...
No Matches
console.h
Go to the documentation of this file.
1
10
11#pragma once
12
14
15// This code was written while I was on a small
16// airplane. May have weird formatting
17
18extern vec2i console_cursor_position;
19extern uint32_t console_foreground_color;
20extern uint32_t console_background_color;
21extern const framebuffer_font_t* console_font;
22
35extern void console_initialize(framebuffer_t* framebuffer, const framebuffer_font_t* font);
36
42extern void console_set_cursor(vec2i cursor_position);
43
49extern void console_set_text_color(uint32_t foreground, uint32_t background);
50
57extern void console_put(const char * string);
void console_put(const char *string)
Puts a string into the console.
Definition console.c:41
void console_set_cursor(vec2i cursor_position)
Sets the cursor position of the console.
Definition console.c:32
void console_set_text_color(uint32_t foreground, uint32_t background)
Sets the color text color.
Definition console.c:36
void console_initialize(framebuffer_t *framebuffer, const framebuffer_font_t *font)
Initializes the visual console.
Definition console.c:24
Functions for managing and rendering framebuffers.
Used to describe a font for the framebuffer to use.
Definition framebuffer.h:42
Data format for framebuffers.
Definition framebuffer.h:28
Definition vec2.h:17