32 #define WINDOW_CENTER -1
34 #define MOUSE_LBUT 0x01
35 #define MOUSE_RBUT 0x02
36 #define MOUSE_MBUT 0x04
40 #define KEY_PAGEUP 0xF2
41 #define KEY_PAGEDOWN 0xF3
42 #define KEY_INSERT 0xF4
43 #define KEY_DELETE 0xF5
47 #define KEY_RIGHT 0xF9
49 #define CONTROLKEY_CTRL 0x01000
50 #define CONTROLKEY_ALT 0x02000
51 #define CONTROLKEY_ALTGR 0x03000
52 #define CONTROLKEY_SHIFT 0x08000
65 PREDECLARE_STRUCT(WINdow);
68 void WINdestroy (WINdow* _m);
69 void WINwaitLoop (WINdow* _m);
70 void WINclear (WINdow* _m);
71 void WINdrawImage (WINdow* _m,
void* _image, u32 _width, u32 _height, u32 _nbBitsPerPixel, u8* _palette, u32 _x, u32 _y);
72 void WINfilledRectangle (WINdow* _m,s32 _iX1, s32 _iY1, s32 _iX2, s32 _iY2);
73 void WINline (WINdow* _m,s32 _iX1, s32 _iY1, s32 _iX2, s32 _iY2);
74 void WInpoint (WINdow* _m,s32 _iX, s32 _iY);
75 void WINrectangle (WINdow* _m,s32 _iX1, s32 _iY1, s32 _iX2, s32 _iY2);
76 void WINsetColor (WINdow* _m,u8 _uiR, u8 _uiG, u8 _uiB);
77 void WINtext (WINdow* _m,s32 _iX, s32 _iY,
char* _string);
78 void WINrender (WINdow* _m, u32 _waitms);
79 bool WINisClosed (WINdow* _m);
80 void WINgetMouse (WINdow* _m,s32* _piX, s32* _piY, s32* _piK, s32* _z);
81 bool WINisKeyHit (WINdow* _m);
82 u32 WINgetKey (WINdow* _m);
83 u32 WINgetControlKeys (WINdow* _m);