#include <GlApp.h>
Inheritance diagram for vrj::GlApp:


Public Methods | |
| GlApp (Kernel *kern) | |
| GlApp () | |
| virtual | ~GlApp () |
| virtual void | draw ()=0 |
| Function to draw the scene. More... | |
| virtual void | contextInit () |
| Function that is called immediately after a new context is created. More... | |
| virtual void | contextClose () |
| Function that is called immediately before a context is closed. More... | |
| virtual void | contextPreDraw () |
| Function that is called upon entry into the context for a draw. More... | |
| virtual void | contextPostDraw () |
| Function that is called upon exit of the context for a draw. More... | |
| virtual void | bufferPreDraw () |
| Function that is called once for each frame buffer of a gl context. More... | |
| virtual void | pipePreDraw () |
| Function that is called at the beginning of the drawing of each pipe. More... | |
Factory functions | |
| virtual DrawManager * | getDrawManager () |
| Get the DrawManager to use. More... | |
PURPOSE: This class defines the class that OpenGL application classes should be derived from. The interface given is the interface that the System expects in order to interface with the application.
contextInit(); // called for each context while (drawing) { preFrame(); bufferPreDraw(); // called for each draw buffer contextPreDraw(); // called for each context draw(); // called for each surfacewindow contextPostDraw(); // called for each context intraFrame(); // called in parallel to the draw functions. sync(); postFrame(); UpdateTrackers(); } contextClose(); // called for each context
Definition at line 82 of file GlApp.h.
|
|
Definition at line 85 of file GlApp.h. Referenced by vrj::OpenSGApp::OpenSGApp, and vrj::OsgApp::OsgApp.
00085 : App(kern) 00086 { 00087 //api.setOpenGL(); // Tell everyone that we are OpenGL 00088 } |
|
|
Definition at line 90 of file GlApp.h.
00090 {;}
|
|
|
Definition at line 92 of file GlApp.h.
00093 {
00094 /* Do nothing. */ ;
00095 }
|
|
|
Function to draw the scene. Override this function with the user draw routine.
Implemented in vrj::GlProcAppWrapper. |
|
|
Function that is called immediately after a new context is created. Use this function to create context specific data structures. i.e. Display lists, Texture objects, etc.
Reimplemented in vrj::GlProcAppWrapper. Definition at line 110 of file GlApp.h.
00111 {;}
|
|
|
Function that is called immediately before a context is closed. Use the function to clean up any context data structures. Reimplemented in vrj::OsgApp. Definition at line 116 of file GlApp.h.
00117 {;}
|
|
|
Function that is called upon entry into the context for a draw.
Reimplemented in vrj::OpenSGApp. Definition at line 128 of file GlApp.h.
00129 {;}
|
|
|
Function that is called upon exit of the context for a draw.
Reimplemented in vrj::OpenSGApp. Definition at line 134 of file GlApp.h.
00135 {;}
|
|
|
Function that is called once for each frame buffer of a gl context. This function is executed after contextInit() (if needed) but before contextPreDraw(). It is called once per framebuffer (see note).
Reimplemented in vrj::GlProcAppWrapper. Definition at line 150 of file GlApp.h.
00151 {;}
|
|
|
Function that is called at the beginning of the drawing of each pipe.
Reimplemented in vrj::OsgApp. Definition at line 160 of file GlApp.h.
00161 {;}
|
|
|
Get the DrawManager to use. Returns the OpenGL Draw Manager. Implements vrj::App. Definition at line 171 of file GlApp.h. Referenced by vrj::OsgApp::draw, and vrj::OpenSGApp::draw.
00172 { return GlDrawManager::instance(); }
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002