|
Functions |
| pRecContext | getCurrentContext () |
| int | main (int argc, char **argv) |
| void | createMenus () |
| void | processMenuEvents (int option) |
| int | processFramesPerSecond (char *argument[], int maxNumArgs) |
| void | keyPressed (unsigned char key, int x, int y) |
| | Called when a key is pressed, and no other keys are held down.
|
| void | mouseMovedButton (int x, int y) |
| | Called when the mouse is moved with a button pressed down.
|
| void | mousePressedButton (int button, int state, int x, int y) |
| | Called when a mouse button is pressed.
|
| void | mousePan (int x, int y, pRecContext pContextInfo) |
| void | mouseDolly (int x, int y, pRecContext pContextInfo) |
| void | renderScene (void) |
| | Renders the scene.
|
| void | resizeWindow (int x, int y) |
| | Called when the window is resized.
|
| void | resizeGL (pRecContext pContextInfo, CGRect viewRect) |
| | Handles resizing of GL need context update and if the window dimensions change, a window dimension update, reseting of viewport and an update of the projection matrix.
|
| void | updateProjection (pRecContext pContextInfo) |
| | Update the projection matrix based on camera and view info.
|
| void | updateModelView (pRecContext pContextInfo) |
| | Updates the viewpoint of the model.
|
| void | drawCStringGL (char *cstrOut, GLuint fontList) |
| | Draws a CString in OpenGL.
|
| void | appendTextToBuffer (char *tempStr) |
| void | submitTextToBuffer (const char *val) |
| void | drawInfo (pRecContext) |
| | Displays the info on the screen.
|
| void | drawGL (pRecContext pContextInfo) |
| | Main OpenGL drawing function.
|
| void | buildGL (void) |
| | Initializes OpenGL.
|
Variables |
| pRecContext | pContextInfo |
| GLint | gDollyPanStartPoint [2] = {0, 0} |
| GLfloat | gTrackBallRotation [4] = {0.0f, 0.0f, 0.0f, 0.0f} |
| GLboolean | gDolly = GL_FALSE |
| GLboolean | gPan = GL_FALSE |
| GLboolean | gTrackball = GL_FALSE |
| pRecContext | gTrackingContextInfo = NULL |
| int | gCurrButton = -1 |
| pRecContext | backup |
| double | fps = 30.0 |
| TextBox * | myTextBox = 0 |