This commit is contained in:
Ole Morud
2022-06-07 13:46:52 +02:00
parent a728eae22e
commit 91a43e6983
3 changed files with 97 additions and 17 deletions

16
graphics.h Normal file
View File

@@ -0,0 +1,16 @@
#ifndef GRAPHICS_H_
#define GRAPHICS_H_
typedef struct Canvas {
int x;
int y;
char* data;
} Canvas;
void clear();
void render(Canvas*);
void line(Canvas*, unsigned int, unsigned int, unsigned int, unsigned int);
void dot(Canvas*, const unsigned int, const unsigned int);
#endif