]> git.lizzy.rs Git - dragonblocks-bedrock.git/blob - src/graphics.h
d1d23abe162cdd43475d9b4006e3576bd0a6d703
[dragonblocks-bedrock.git] / src / graphics.h
1 #ifndef _GRAPHICS_H_
2 #define _GRAPHICS_H_
3
4 #include <string>
5 #include "texture.h"
6 #include "util.h"
7
8
9 #define BLOCKWIDTH 32
10 #define DISPLAYWIDTH 25
11 #define DISPLAYHEIGHT 25
12 #define INVBLOCKWIDTH 64
13 #define INVWIDTH 80
14
15 #define COLOR_WHITE {1,1,1}
16 #define COLOR_BLACK {0,0,0}
17
18
19 class Graphics{
20         public:
21                 static void init();
22                 
23                 static position pointed;
24                 static position pos;
25                 
26                 //handlers
27                 static void display();
28                 static void keyboard(unsigned char, int, int);
29                 static void mouse(int, int, int, int);
30                 static void special(int, int, int);
31                 static void reshape(int, int);
32                 static void motion(int, int);
33                 
34                 //functions
35                 static void drawRectangle(int, int, int, int, color);
36                 static void writeText(int, int, std::string, void*, color);
37 };
38 #endif