HOG2
SFML_HOG.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 06/22/21.
7  *
8  * This file is part of HOG2. See https://github.com/nathansttt/hog2 for licensing information.
9  *
10  */
11 
12 #ifndef SFML_HOG_H
13 #define SFML_HOG_H
14 
15 #include "Common.h"
16 
17 void createMenus();
18 void processMenuEvents(int option);
19 void keyPressed(unsigned char key, int x, int y);
20 void mouseMovedNoButton(int x, int y);
21 void mouseMovedButton(int x, int y);
22 void mousePressedButton(int button, int state, int x, int y);
23 static void mousePan (int x, int y, pRecContext pContextInfo);
24 static void mouseDolly (int x, int y, pRecContext pContextInfo);
25 void renderScene(void);
26 void buildGL(int x, int y);
27 void drawGL (pRecContext pContextInfo, sf::Window &window);
28 void drawCStringGL (char * cstrOut, GLuint fontList);
29 static void drawInfo (pRecContext pContextInfo);
30 void resizeWindow(int x, int y);
32 //void updateProjection(pRecContext pContextInfo, int viewPort = -1);
34 void pointPath();
35 
37 //static void drawCaps (pRecContext pContextInfo) {}
38 
39 #endif // SFML_HOG_H
mousePressedButton
void mousePressedButton(int button, int state, int x, int y)
Called when a mouse button is pressed.
Definition: SFML_HOG.cpp:311
Common.h
mouseDolly
static void mouseDolly(int x, int y, pRecContext pContextInfo)
getCurrentContext
pRecContext getCurrentContext()
Definition: GLUThog.cpp:49
mouseMovedNoButton
void mouseMovedNoButton(int x, int y)
Definition: GLUThog.cpp:124
width
int width
Definition: SFML_HOG.cpp:54
renderScene
void renderScene(void)
Renders the scene.
Definition: GLUThog.cpp:493
updateModelView
void updateModelView(pRecContext pContextInfo)
drawCStringGL
void drawCStringGL(char *cstrOut, GLuint fontList)
Draws a CString in OpenGL.
Definition: GLUThog.cpp:680
mousePan
static void mousePan(int x, int y, pRecContext pContextInfo)
pointPath
void pointPath()
recContext
Definition: Common.h:64
buildGL
void buildGL(int x, int y)
End OpenGL drawing function - for visualizing trajectory merging.
Definition: SFML_HOG.cpp:1222
createMenus
void createMenus()
Definition: GLUThog.cpp:100
height
int height
Definition: SFML_HOG.cpp:54
resizeWindow
void resizeWindow(int x, int y)
Called when the window is resized.
Definition: GLUThog.cpp:513
drawGL
void drawGL(pRecContext pContextInfo, sf::Window &window)
Main OpenGL drawing function.
Definition: SFML_HOG.cpp:1136
mouseMovedButton
void mouseMovedButton(int x, int y)
Called when the mouse is moved with a button pressed down.
Definition: GLUThog.cpp:176
drawInfo
static void drawInfo(pRecContext pContextInfo)
resizeGL
void resizeGL(pRecContext pContextInfo, int width, int height)
Handles resizing of GL need context update and if the window dimensions change, a window dimension up...
Definition: SFML_HOG.cpp:568
processMenuEvents
void processMenuEvents(int option)
Definition: GLUThog.cpp:104
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
pContextInfo
pRecContext pContextInfo
Definition: GLUThog.cpp:31