HOG2
Sample.h
Go to the documentation of this file.
1 /*
2  * $Id: sample.h
3  * hog2
4  *
5  * Created by Nathan Sturtevant on 5/31/05.
6  * Modified by Nathan Sturtevant on 02/29/20.
7  *
8  * This file is part of HOG2. See https://github.com/nathansttt/hog2 for licensing information.
9  *
10  */
11 
12 void MyWindowHandler(unsigned long windowID, tWindowEventType eType);
13 void MyFrameHandler(unsigned long windowID, unsigned int viewport, void *data);
14 void MyDisplayHandler(unsigned long windowID, tKeyboardModifier, char key);
15 void MyPathfindingKeyHandler(unsigned long windowID, tKeyboardModifier, char key);
16 void MyRandomUnitKeyHandler(unsigned long windowID, tKeyboardModifier, char key);
17 int MyCLHandler(char *argument[], int maxNumArgs);
18 bool MyClickHandler(unsigned long windowID, int x, int y, point3d loc, tButtonType, tMouseEventType);
19 void InstallHandlers();
MyClickHandler
bool MyClickHandler(unsigned long windowID, int x, int y, point3d loc, tButtonType, tMouseEventType)
Definition: Sample.cpp:442
tKeyboardModifier
tKeyboardModifier
Definition: Common.h:136
MyWindowHandler
void MyWindowHandler(unsigned long windowID, tWindowEventType eType)
Definition: Sample.cpp:111
MyFrameHandler
void MyFrameHandler(unsigned long windowID, unsigned int viewport, void *data)
Definition: Sample.cpp:141
viewport
Definition: Common.h:56
MyDisplayHandler
void MyDisplayHandler(unsigned long windowID, tKeyboardModifier, char key)
Definition: Sample.cpp:258
MyCLHandler
int MyCLHandler(char *argument[], int maxNumArgs)
Definition: Sample.cpp:226
loc
Definition: MapGenerators.cpp:296
tWindowEventType
tWindowEventType
Definition: Common.h:158
point3d
#define point3d
Definition: GLUtil.h:123
MyPathfindingKeyHandler
void MyPathfindingKeyHandler(unsigned long windowID, tKeyboardModifier, char key)
Definition: Sample.cpp:379
tMouseEventType
tMouseEventType
Definition: Common.h:151
InstallHandlers
void InstallHandlers()
Allows you to install any keyboard handlers needed for program interaction.
Definition: Sample.cpp:85
tButtonType
tButtonType
Definition: Common.h:144
MyRandomUnitKeyHandler
void MyRandomUnitKeyHandler(unsigned long windowID, tKeyboardModifier, char key)
Definition: Sample.cpp:287