Qubet  1.0
The ultimate QGL addicting videogame!
 All Classes Functions Variables Pages
defines.h
1 // Qubet - Copyright (C) 2011
2 // Enrico Bacis
3 // Daniele Ciriello
4 
5 // Qubet is free software: you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation, either version 3 of the License, or
8 // (at your option) any later version.
9 
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 
15 // You should have received a copy of the GNU General Public License
16 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 
18 
19 #ifndef DEFINES_H
20 #define DEFINES_H
21 
22 #define QUBET_VERSION "1.0"
23 
24 #define WIDTH 600
25 #define HEIGHT 400
26 #define MOVE_X 100
27 #define MOVE_Y 100
28 
29 #define BUFSIZE 512
30 
31 #define X_PLUS 0
32 #define X_MINUS 1
33 #define Y_PLUS 2
34 #define Y_MINUS 3
35 #define Z_PLUS 4
36 #define Z_MINUS 5
37 
38 #define VOLUME_ON 400
39 #define VOLUME_OFF 401
40 
41 #define ASPHALT 410
42 #define GRID 411
43 
44 #define MOUSE_MOVED_NONE 0
45 #define MOUSE_MOVED_DOWN 1
46 #define MOUSE_MOVED_FULL 2
47 
48 #define LEVEL 500
49 #define OBSTACLES 510
50 
51 #define LEVEL_HEIGHT 0.2f
52 #define LEVEL_WIDTH_DEFAULT 9
53 #define LEVEL_LENGTH_DEFAULT 450
54 #define LEVEL_GRAVITY_DEFAULT 4
55 
56 #define OBSTACLE_CUBE_SMALL 0
57 #define OBSTACLE_I 1
58 #define OBSTACLE_L 2
59 #define OBSTACLE_CUBE_BIG 3
60 
64 enum { LOADING, MENU_VIEW, GAME_VIEW, LEVELEDITOR_VIEW, NO_VIEW };
65 
69 enum { STORY_MODE, ARCADE_MODE, EDITOR_MODE };
70 
71 enum { COLOR_DISABLED, COLOR_RED, COLOR_GREEN, COLOR_BLUE };
72 
73 // Re-define for compatibility purposes
74 #ifndef GL_CLAMP_TO_EDGE
75  #define GL_CLAMP_TO_EDGE 0x812F
76 #endif
77 
78 #endif // DEFINES_H