home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OpenGL Superbible
/
OpenGL_Superbible_Waite_Group_Press_1996.iso
/
book
/
chapt10
/
tank
/
borland
/
externs.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-07-07
|
1KB
|
44 lines
// Externs.h
// This file contains all handles, etc that are shared between
// source modules. Include it in everything except tank.c where the
// variables are actually defined
// Tank and Robot positon in the world
extern struct _POSITION tankPos;
extern struct _POSITION robotPos;
extern struct _POSITION *pObject;
// External handles to all the windows, palettes, etc.
extern HWND hCompassWnd;
extern HWND hCenterWnd;
extern HWND hRadarWnd;
extern HWND hViewWnd;
extern HWND hMainWnd;
extern HPALETTE hPalette;
// Other shared variables
extern double PI;
extern BOOL bTank;
extern int nWorldList;
extern int nCompassList;
/////////////////////////
// Functions declared in other source files
BOOL InitWorld(void); // Defined in initworld.c
void RandomizePositions(void); // Defined in RenderWorld.c
void RenderWorld(void); // Defined in RenderWorld.c
void DrawPiller(void); // Defined in RenderWorld.c
void DrawPyramid(void); // Defined in RenderWorld.c
void DrawSlab(void); // Defined in RenderWorld.c
void DrawWheel(void); // Defined in RenderWorld.c
float RandomPos(void);
void PlacePyramids(void);
void PlaceSlabs(void);
void PlacePillers(void);
void DrawGround(void);
void DrawTank(void);
void DrawRobot(void);