Xyris  0.5
font.hpp
Go to the documentation of this file.
1 /**
2  * @file font.hpp
3  * @author Keeton Feavel ([email protected])
4  * @brief
5  * @version 0.1
6  * @date 2021-07-25
7  *
8  * @copyright Copyright the Panix Contributors (c) 2021
9  *
10  */
11 #pragma once
12 #include <stdint.h>
13 
14 #define FONT_WIDTH 8
15 #define FONT_HEIGHT 8
16 
17 namespace Graphics::Font {
18 
19 /**
20  * @brief Draw the character at the given coordinates in the given color.
21  *
22  * @param c Character to draw
23  * @param x Horizontal position
24  * @param y Vertical position
25  * @param fore Character hex color
26  */
27 void Draw(char c, uint32_t x, uint32_t y, uint32_t fore);
28 
29 /**
30  * @brief Draw the character at the given coordinates in the given color.
31  *
32  * @param c Character to draw
33  * @param x Horizontal position
34  * @param y Vertical position
35  * @param fore Character foreground hex color
36  * @param back Character background hex color
37  */
38 void Draw(char c, uint32_t x, uint32_t y, uint32_t fore, uint32_t back);
39 
40 } // !namespace Font
Graphics::Font::Draw
void Draw(char c, uint32_t x, uint32_t y, uint32_t fore)
Draw the character at the given coordinates in the given color.
Definition: font.cpp:157
Graphics::Font
Definition: font.cpp:18