demos/GlutDemo.cpp File Reference

#include "DemoConfig.h"
#include <GL/glut.h>

Include dependency graph for GlutDemo.cpp:

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


Function Documentation

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().


Variable Documentation

DemoEventHandler handler

Definition at line 13 of file GlutDemo.cpp.

int oldTime = 0

Definition at line 59 of file GlutDemo.cpp.

Referenced by RenderScene().


Generated on Wed Dec 5 20:32:03 2007 for GLWX by  doxygen 1.5.3