#include "DemoConfig.h"
#include <GL/glut.h>
Go to the source code of this file.
Functions | |
GuiWrapper | gui (&handler) |
void | MouseClicked (int button, int state, int x, int y) |
void | MouseMoved (int x, int y) |
void | KeyTyped (unsigned char key, int x, int y) |
void | InitializeScene () |
void | SetPerspective (int width, int height) |
void | RenderScene () |
void | InputKey (int key, int x, int y) |
int | main (int argc, char *argv[]) |
Variables | |
DemoEventHandler | handler |
int | oldTime = 0 |
GuiWrapper gui | ( | & | handler | ) |
Referenced by InputKey(), KeyTyped(), main(), MouseClicked(), MouseMoved(), MyCallback(), RenderScene(), ResizeWindow(), and SetPerspective().
void InitializeScene | ( | ) |
void InputKey | ( | int | key, | |
int | x, | |||
int | y | |||
) |
Definition at line 115 of file GlutDemo.cpp.
References gui(), and GuiWrapper::SpecialKeyDown().
Referenced by main().
void KeyTyped | ( | unsigned char | key, | |
int | x, | |||
int | y | |||
) |
Definition at line 107 of file GlutDemo.cpp.
References GuiWrapper::AsciiKeyDown(), and gui().
Referenced by main().
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 24 of file GlutDemo.cpp.
References gui(), GuiWrapper::Init(), InputKey(), KeyTyped(), MouseClicked(), MouseMoved(), RenderScene(), and SetPerspective().
void MouseClicked | ( | int | button, | |
int | state, | |||
int | x, | |||
int | y | |||
) |
Definition at line 94 of file GlutDemo.cpp.
References gui(), and GuiWrapper::MouseClicked().
Referenced by main().
void MouseMoved | ( | int | x, | |
int | y | |||
) |
Definition at line 102 of file GlutDemo.cpp.
References gui(), and GuiWrapper::MouseMoved().
Referenced by main().
void RenderScene | ( | ) |
Definition at line 61 of file GlutDemo.cpp.
References DemoEventHandler::blue, DemoEventHandler::green, gui(), GuiWrapper::IsActive(), oldTime, DemoEventHandler::red, GuiWrapper::RenderScene(), and GuiWrapper::Update().
Referenced by main().
void SetPerspective | ( | int | width, | |
int | height | |||
) |
Definition at line 76 of file GlutDemo.cpp.
References gui(), and GuiWrapper::SetDimensions().
Referenced by main().
Definition at line 13 of file GlutDemo.cpp.
int oldTime = 0 |