draw functions ready

This commit is contained in:
2021-09-03 14:04:19 +02:00
parent 2cc9188053
commit e55e4c64dd
3 changed files with 68 additions and 56 deletions

29
draw.h
View File

@@ -2,15 +2,32 @@
#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();
void draw_clear(const uint8_t color);
void draw_present();
void draw_fill(const int x1, const int y1, const int x2, const int y2, const uint8_t color);
void draw_rect(const int x1, const int y1, const int x2, const int y2, const uint8_t color);
void draw_inset(const int x1, const int y1, const int x2, const int y2, const uint8_t color1, const uint8_t color2);
void draw_outset(const int x1, const int y1, const int x2, const int y2, const uint8_t color1, const uint8_t color2);
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, 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);