]> 4ch.mooo.com Git - 16.git/blob - 16/w_modex/XPRIM.HPP
e9948369d7ed0ab07f3ee896e361d14b66a8393c
[16.git] / 16 / w_modex / XPRIM.HPP
1 #ifndef X_PRIMITIVES_HPP\r
2     #define X_PRIMITIVES_HPP\r
3 \r
4 #include "xtypes.hpp"\r
5 \r
6 // Waits for vertical retrace\r
7 void wait_for_retrace(void);\r
8 \r
9 // Page setting functions\r
10 void setDrawPage(unsigned int page);\r
11 void setVisiblePage(unsigned int page);\r
12 \r
13 // Screen clearing functions\r
14 void clearX(BYTE color);\r
15 \r
16 // Drawing functions\r
17 void putpixelX(COORD x, COORD y, BYTE color);\r
18 BYTE getpixelX(COORD x, COORD y);\r
19 void boxX(COORD x1, COORD y1, COORD x2, COORD y2, BYTE color);\r
20 void filledboxX(COORD x1, COORD y1, COORD x2, COORD y2, BYTE color);\r
21 void circleX(COORD x, COORD y, DIST r, BYTE color);\r
22 void filledcircleX(COORD x, COORD y, DIST r, BYTE color);\r
23 void lineX(COORD lx1, COORD ly1, COORD lx2, COORD ly2, BYTE color);\r
24 \r
25 // Text output functions\r
26 int  loadfontX(char *fname);\r
27 void putchX(COORD x, COORD y, char c, BYTE color);\r
28 void putstringX(COORD x, COORD y, char *str, BYTE color);\r
29 \r
30 #endif\r
31 \r