GBDK 2020 Docs API Documentation for GBDK 2020

drawing.h
Go to the documentation of this file.
1
25 #ifndef __DRAWING_H
26 #define __DRAWING_H
27
29 #define GRAPHICS_WIDTH 160
30 #define GRAPHICS_HEIGHT 144
31
33 #if ORIGINAL
34 #define SOLID 0x10 /* Overwrites the existing pixels */
35 #define OR 0x20 /* Performs a logical OR */
36 #define XOR 0x40 /* Performs a logical XOR */
37 #define AND 0x80 /* Performs a logical AND */
38 #else
39 #define SOLID 0x00 /* Overwrites the existing pixels */
40 #define OR 0x01 /* Performs a logical OR */
41 #define XOR 0x02 /* Performs a logical XOR */
42 #define AND 0x03 /* Performs a logical AND */
43 #endif
44
46 #define WHITE 0
47 #define LTGREY 1
48 #define DKGREY 2
49 #define BLACK 3
50
52 #define M_NOFILL 0
53 #define M_FILL 1
54
56 #define SIGNED 1
57 #define UNSIGNED 0
58
59 #include <types.h>
60
64 void
65 gprint(char *str) NONBANKED;
66
76 void
77 gprintln(INT16 number, INT8 radix, INT8 signed_value);
78
83 void
84 gprintn(INT8 number, INT8 radix, INT8 signed_value);
85
102 INT8
103 gprintf(char *fmt,...) NONBANKED;
104
106 void
107 plot(UINT8 x, UINT8 y, UINT8 colour, UINT8 mode);
108
110 void
111 plot_point(UINT8 x, UINT8 y);
112
116 void
117 switch_data(UINT8 x, UINT8 y, unsigned char *src, unsigned char *dst) NONBANKED;
118
120 void
121 draw_image(unsigned char *data) NONBANKED;
122
124 void
125 line(UINT8 x1, UINT8 y1, UINT8 x2, UINT8 y2);
126
129 void
130 box(UINT8 x1, UINT8 y1, UINT8 x2, UINT8 y2, UINT8 style);
131
134 void
135 circle(UINT8 x, UINT8 y, UINT8 radius, UINT8 style);
136
138 UINT8
139 getpix(UINT8 x, UINT8 y);
140
145 void
146 wrtchr(char chr);
147
152 void
153 gotogxy(UINT8 x, UINT8 y);
154
157 void color(UINT8 forecolor, UINT8 backcolor, UINT8 mode);
158
159 #endif /* __DRAWING_H */
gprintln
void gprintln(INT16 number, INT8 radix, INT8 signed_value)
UINT8
unsigned char UINT8
Definition: types.h:21
gprintf
INT8 gprintf(char *fmt,...) NONBANKED
INT16
signed int INT16
Definition: types.h:24
plot_point
void plot_point(UINT8 x, UINT8 y)
getpix
UINT8 getpix(UINT8 x, UINT8 y)
mode
void mode(UINT8 m) NONBANKED
box
void box(UINT8 x1, UINT8 y1, UINT8 x2, UINT8 y2, UINT8 style)
draw_image
void draw_image(unsigned char *data) NONBANKED
color
void color(UINT8 forecolor, UINT8 backcolor, UINT8 mode)
line
void line(UINT8 x1, UINT8 y1, UINT8 x2, UINT8 y2)
gprint
void gprint(char *str) NONBANKED
switch_data
void switch_data(UINT8 x, UINT8 y, unsigned char *src, unsigned char *dst) NONBANKED
circle
void circle(UINT8 x, UINT8 y, UINT8 radius, UINT8 style)
gotogxy
void gotogxy(UINT8 x, UINT8 y)
NONBANKED
#define NONBANKED
Definition: types.h:11
gprintn
void gprintn(INT8 number, INT8 radix, INT8 signed_value)
INT8
signed char INT8
Definition: types.h:18
plot
void plot(UINT8 x, UINT8 y, UINT8 colour, UINT8 mode)
wrtchr
void wrtchr(char chr)