HOG2
GLUThog.h
Go to the documentation of this file.
1 /*
2  * $Id: main.h
3  * hog2
4  *
5  * Created by Nathan Sturtevant on 10/18/06.
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 #ifndef OS_MAC
12 
13 /* Apple CGSize */
14 struct CGSize {
15  float width;
16  float height;
17 };
18 
19 typedef struct CGSize CGSize;
20 
21 
22 /* Apple CGPoint */
23 struct CGPoint {
24  float x;
25  float y;
26 };
27 typedef struct CGPoint CGPoint;
28 
29 
30 /* Apple CGRect */
31 struct CGRect {
34 };
35 typedef struct CGRect CGRect;
36 
37 #endif
38 
39 void createMenus();
40 void processMenuEvents(int option);
41 void keyPressed(unsigned char key, int x, int y);
42 void mouseMovedNoButton(int x, int y);
43 void mouseMovedButton(int x, int y);
44 void mousePressedButton(int button, int state, int x, int y);
45 static void mousePan (int x, int y, pRecContext pContextInfo);
46 static void mouseDolly (int x, int y, pRecContext pContextInfo);
47 void renderScene(void);
48 void buildGL(void);
50 //void trajectoryDrawGL(pRecContext pContextInfo); // WESHACK - for drawing trajectories at the end of our 'multipleAStarMM' simulation run
51 void drawCStringGL (char * cstrOut, GLuint fontList);
52 static void drawInfo (pRecContext pContextInfo);
53 void resizeWindow(int x, int y);
54 void resizeGL(pRecContext pContextInfo, CGRect viewRect);
55 //void updateProjection(pRecContext pContextInfo, int viewPort = -1);
57 void pointPath();
58 int processFramesPerSecond(char *argument[], int maxNumArgs);
59 
60 void SetLighting(GLfloat ambientf = 0.2f, GLfloat diffusef = 1.0f, GLfloat specularf = 1.0f);
61 
63 //static void drawCaps (pRecContext pContextInfo) {}
CGRect::origin
CGPoint origin
Definition: GLUThog.h:32
CGRect::size
CGSize size
Definition: GLUThog.h:33
CGSize
Definition: GLUThog.h:14
renderScene
void renderScene(void)
Renders the scene.
Definition: GLUThog.cpp:493
buildGL
void buildGL(void)
End OpenGL drawing function - for visualizing trajectory merging.
Definition: GLUThog.cpp:1086
updateModelView
void updateModelView(pRecContext pContextInfo)
CGPoint::y
float y
Definition: GLUThog.h:25
drawGL
void drawGL(pRecContext pContextInfo)
Main OpenGL drawing function.
Definition: GLUThog.cpp:987
SetLighting
void SetLighting(GLfloat ambientf=0.2f, GLfloat diffusef=1.0f, GLfloat specularf=1.0f)
Definition: GLUtil.cpp:565
mousePressedButton
void mousePressedButton(int button, int state, int x, int y)
Called when a mouse button is pressed.
Definition: SFML_HOG.cpp:311
drawInfo
static void drawInfo(pRecContext pContextInfo)
CGPoint::x
float x
Definition: GLUThog.h:24
mouseMovedNoButton
void mouseMovedNoButton(int x, int y)
Definition: GLUThog.cpp:124
resizeWindow
void resizeWindow(int x, int y)
Called when the window is resized.
Definition: GLUThog.cpp:513
mousePan
static void mousePan(int x, int y, pRecContext pContextInfo)
createMenus
void createMenus()
Definition: GLUThog.cpp:100
keyPressed
void keyPressed(unsigned char key, int x, int y)
Called when a key is pressed, and no other keys are held down.
Definition: GLUThog.cpp:113
recContext
Definition: Common.h:64
processFramesPerSecond
int processFramesPerSecond(char *argument[], int maxNumArgs)
CGRect
Definition: GLUThog.h:31
processMenuEvents
void processMenuEvents(int option)
Definition: GLUThog.cpp:104
pointPath
void pointPath()
CGSize::height
float height
Definition: GLUThog.h:16
mouseDolly
static void mouseDolly(int x, int y, pRecContext pContextInfo)
getCurrentContext
pRecContext getCurrentContext()
Definition: GLUThog.cpp:49
CGSize::width
float width
Definition: GLUThog.h:15
CGPoint
Definition: GLUThog.h:23
resizeGL
void resizeGL(pRecContext pContextInfo, CGRect viewRect)
Handles resizing of GL need context update and if the window dimensions change, a window dimension up...
Definition: GLUThog.cpp:533
mouseMovedButton
void mouseMovedButton(int x, int y)
Called when the mouse is moved with a button pressed down.
Definition: GLUThog.cpp:176
drawCStringGL
void drawCStringGL(char *cstrOut, GLuint fontList)
Draws a CString in OpenGL.
Definition: GLUThog.cpp:680
pContextInfo
pRecContext pContextInfo
Definition: GLUThog.cpp:31