GBDK 2020 Docs  4.1.1
API Documentation for GBDK 2020
drawing.h
Go to the documentation of this file.
1 
33 #ifndef __DRAWING_H
34 #define __DRAWING_H
35 
36 #include <types.h>
37 #include <stdint.h>
38 
40 #define GRAPHICS_WIDTH 160
41 #define GRAPHICS_HEIGHT 144
42 
43 #define SOLID 0x00 /* Overwrites the existing pixels */
44 #define OR 0x01 /* Performs a logical OR */
45 #define XOR 0x02 /* Performs a logical XOR */
46 #define AND 0x03 /* Performs a logical AND */
47 
49 #define WHITE 0
50 #define LTGREY 1
51 #define DKGREY 2
52 #define BLACK 3
53 
55 #define M_NOFILL 0
56 #define M_FILL 1
57 
59 #define SIGNED 1
60 #define UNSIGNED 0
61 
62 #include <types.h>
63 
66 void drawing_lcd(void);
67 
71 void gprint(char *str) NONBANKED;
72 
82 void gprintln(int16_t number, int8_t radix, int8_t signed_value) NONBANKED;
83 
88 void gprintn(int8_t number, int8_t radix, int8_t signed_value) NONBANKED;
89 
106 int8_t gprintf(char *fmt,...) NONBANKED;
107 
110 
113 
118 
121 
123 void line(uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2) OLDCALL;
124 
127 void box(uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, uint8_t style) OLDCALL;
128 
131 void circle(uint8_t x, uint8_t y, uint8_t radius, uint8_t style) OLDCALL;
132 
135 
140 void wrtchr(char chr) OLDCALL;
141 
147 
163 void color(uint8_t forecolor, uint8_t backcolor, uint8_t mode) OLDCALL;
164 
165 #endif /* __DRAWING_H */
#define OLDCALL
Definition: types.h:21
#define NONBANKED
Definition: types.h:38
uint8_t getpix(uint8_t x, uint8_t y) OLDCALL
void gotogxy(uint8_t x, uint8_t y) OLDCALL
void plot_point(uint8_t x, uint8_t y) OLDCALL
int8_t gprintf(char *fmt,...) NONBANKED
void switch_data(uint8_t x, uint8_t y, uint8_t *src, uint8_t *dst) OLDCALL
void drawing_lcd(void)
void wrtchr(char chr) OLDCALL
void gprintn(int8_t number, int8_t radix, int8_t signed_value) NONBANKED
void color(uint8_t forecolor, uint8_t backcolor, uint8_t mode) OLDCALL
void draw_image(uint8_t *data) OLDCALL
void plot(uint8_t x, uint8_t y, uint8_t colour, uint8_t mode) OLDCALL
void circle(uint8_t x, uint8_t y, uint8_t radius, uint8_t style) OLDCALL
void box(uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, uint8_t style) OLDCALL
void gprint(char *str) NONBANKED
void line(uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2) OLDCALL
void gprintln(int16_t number, int8_t radix, int8_t signed_value) NONBANKED
void mode(uint8_t m) OLDCALL
short int int16_t
Definition: stdint.h:44
unsigned char uint8_t
Definition: stdint.h:51
signed char int8_t
Definition: stdint.h:43