Go to the source code of this file.
|
| #define | COLOR_BLACK (rgb_t) { 0, 0, 0 } |
| |
| #define | COLOR_BLUE (rgb_t) { 0, 0, 255} |
| |
| #define | COLOR_GREEN (rgb_t) { 0, 255, 0 } |
| |
| #define | COLOR_CYAN (rgb_t) { 0, 255, 255} |
| |
| #define | COLOR_RED (rgb_t) {255, 0, 0 } |
| |
| #define | COLOR_MAGENTA (rgb_t) {255, 0, 255} |
| |
| #define | COLOR_YELLOW (rgb_t) {255, 255, 0 } |
| |
| #define | COLOR_WHITE (rgb_t) {255, 255, 255} |
| |
| #define | BACKGROUND_COLOR COLOR_BLACK |
| |
◆ BACKGROUND_COLOR
Color of the background (it's always block by the walls, anyway)
◆ COLOR_BLACK
| #define COLOR_BLACK (rgb_t) { 0, 0, 0 } |
◆ COLOR_BLUE
| #define COLOR_BLUE (rgb_t) { 0, 0, 255} |
◆ COLOR_CYAN
| #define COLOR_CYAN (rgb_t) { 0, 255, 255} |
◆ COLOR_GREEN
| #define COLOR_GREEN (rgb_t) { 0, 255, 0 } |
◆ COLOR_MAGENTA
| #define COLOR_MAGENTA (rgb_t) {255, 0, 255} |
◆ COLOR_RED
| #define COLOR_RED (rgb_t) {255, 0, 0 } |
◆ COLOR_WHITE
| #define COLOR_WHITE (rgb_t) {255, 255, 255} |
◆ COLOR_YELLOW
| #define COLOR_YELLOW (rgb_t) {255, 255, 0 } |
◆ resolutions_t
Fixed resolution levels
| Enumerator |
|---|
| LOW_RESOLUTION | |
| MID_RESOLUTION | |
| HIGH_RESOLUTION | |
◆ draw_line()
Draw a line of the given thickness from the given start point to the given end point with the given color
◆ draw_point()
Draw a point of the given size in the given position with the given color
◆ draw_square()
Draw a point of the given size (plus the border) in the given position with the given color
- Note
- If you wan't a full square, pass a border of 0
◆ get_actual_resolution()
Returns the current selected resolution
◆ render_screen()
| void render_screen |
( |
void |
| ) |
|
Draw the objects in the window
◆ set_actual_resolution()
Updates the current resolution to the given new one
◆ set_background_color()
| void set_background_color |
( |
const rgb_t |
color | ) |
|
Change the color of the screen when called glClear()
- Parameters
-
| color | The color to change to |