-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.h
executable file
·60 lines (49 loc) · 1.3 KB
/
global.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
/*
* Hostile Takeover:
* CS248 Final Project, Fall 2004
*
* Written by Jonathan Reeves
* jrreeves@stanford.edu
*
* 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 __GLOBAL_H__
#define __GLOBAL_H__
#ifndef __MAIN_H__
#include "projectile.h"
#include "terrain.h"
#include "frustum.h"
#include "skybox.h"
#include "player.h"
#include "aiflock.h"
#include "font.h"
/* global variables we need to use that are associated with main */
extern float stepSize;
extern float camDistance;
extern float camHeight;
extern float waterLevel;
/* terrain objects */
extern terrain_t *ground;
extern terrain_t *water;
/* skybox */
extern skybox_t *sky;
/* the player */
extern player_t *sod;
/* flocks of emergent ai */
extern aiflock_t *flocks[2];
/* the frustum */
extern frustum_t frust;
/* projectile list */
extern proj_node_t *plist;
/* map size */
extern float sizeX;
extern float sizeZ;
/* light position */
extern GLfloat position0[3];
#endif
#endif