-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.h
executable file
·79 lines (63 loc) · 1.74 KB
/
main.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*
* Hostile Takeover:
* CS248 Final Project, Fall 2004
*
* Written by Jonathan Reeves
*
* A simple 3D video game demonstrating the use of OpenGL for graphics
* rendering with a number of advanced techniques and optimizations to make
* it interesting. See the README file which came with this package for more
* details. It also includes a list of sources which were consulted while
* building this software package.
*
*/
#ifndef __MAIN_H__
#define __MAIN_H__
#include "texture.h"
#include "camera.h"
#include "player.h"
#include "ai.h"
#include "skybox.h"
#include "projectile.h"
#include "terrain.h"
#include "frustum.h"
#include "fogplane.h"
#include "aiflock.h"
#include "font.h"
#define POW2(X) 1 << X
/* define some defaults */
#define SCREEN_WIDTH 800
#define SCREEN_HEIGHT 600
#define MOUSE_SENS 0.05 /* 1/20 */
#define STEP_SIZE 0.10 /* trying to replace this by speed */
#define CAM_DISTANCE 5.0 /* distance from player */
#define CAM_HEIGHT 2.0 /* height above player */
#define WATER_LEVEL 7.4
/* global variables and their associated defaults some we want available
outside of here...see global.h for details */
float stepSize = STEP_SIZE;
float camDistance = CAM_DISTANCE;
float camHeight = CAM_HEIGHT;
float waterLevel = WATER_LEVEL;
/* terrain objects */
terrain_t *ground;
terrain_t *water;
/* the frustum */
frustum_t frust;
/* a lovely skybox */
skybox_t *sky;
/* the player */
player_t *sod;
/* a couple of flocks of emergent ai controlled bots */
aiflock_t *flocks[2];
proj_node_t *plist;
float sizeX;
float sizeZ;
/* position of the "sun" */
GLfloat position0[3];
/* these functions needed to not take up space in main.c so they went to
* misc.c */
void SetupLights(void);
void Cleanup(void);
#endif