1 #ifndef X_PRIMITIVES_HPP
\r
2 #define X_PRIMITIVES_HPP
\r
4 #include "xtypes.hpp"
\r
6 // Waits for vertical retrace
\r
7 void wait_for_retrace(void);
\r
9 // Page setting functions
\r
10 void setDrawPage(unsigned int page);
\r
11 void setVisiblePage(unsigned int page);
\r
13 // Screen clearing functions
\r
14 void clearX(BYTE color);
\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
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