-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraphics.h
21 lines (20 loc) · 960 Bytes
/
graphics.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
typedef struct {
int width;
int height;
int* data;
} Framebuffer;
void setFb(Framebuffer fb);
void clear();
void plot(int x, int y, int color);
void line(int x0, int y0, int x1, int y1, int color);
void circle(int x, int y, int radius, int color);
void rectangle(int x, int y, int width, int height, int color);
void drawBuffer(int x, int y, int width, int height, int* source);
void alphaBuffer(int x, int y, int width, int height, int* source);
void plotStruct(int x, int y, int color, Framebuffer fb);
void clearStruct(Framebuffer fb);
void rectangleStruct(int x, int y, int width, int height, int color, Framebuffer fb);
void circleStruct(int x, int y, int radius, int color, Framebuffer fb);
void lineStruct(int x0, int y0, int x1, int y1, int color, Framebuffer fb);
void bufferStruct(int x, int y, int width, int height, int* source, Framebuffer fb);
void alphaBufferStruct(int x, int y, int width, int height, int* source, Framebuffer fb);