34 lines
1.2 KiB
C++
34 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
#define color_black 0
|
|
#define color_dark_blue 1
|
|
#define color_dark_purple 2
|
|
#define color_dark_green 3
|
|
#define color_brown 4
|
|
#define color_dark_grey 5
|
|
#define color_light_grey 6
|
|
#define color_white 7
|
|
#define color_red 8
|
|
#define color_orange 9
|
|
#define color_yellow 10
|
|
#define color_green 11
|
|
#define color_blue 12
|
|
#define color_lavender 13
|
|
#define color_pink 14
|
|
#define color_light_peach 15
|
|
|
|
void draw_init();
|
|
void draw_quit();
|
|
void draw_clear(const uint8_t color);
|
|
void draw_present();
|
|
void draw_fill(const int x, const int y, const int w, const int h, const uint8_t color);
|
|
void draw_rect(const int x, const int y, const int w, const int h, const uint8_t color);
|
|
void draw_inset(const int x, const int y, const int w, const int h, const uint8_t color1, const uint8_t color2);
|
|
void draw_outset(const int x, const int y, const int w, const int h, const uint8_t color1, const uint8_t color2);
|
|
void draw_line(const int x1, const int y1, const int x2, const int y2, const uint8_t color);
|
|
void draw_dotted(const int x1, const int y1, const int x2, const int y2, const uint8_t color);
|
|
void draw_char(const char chr, const int x, const int y, const uint8_t color);
|
|
void draw_string(const char* str, int x, const int y, const uint8_t color);
|