#include <GlProcApp.h>
Inheritance diagram for vrj::GlProcAppWrapper:


Public Types | |
| typedef boost::function0< void > | callback_t |
Public Methods | |
| GlProcAppWrapper () | |
| Type for callbacks. More... | |
| virtual | ~GlProcAppWrapper () |
| void | setDrawMethod (callback_t f) |
| void | setContextInitMethod (callback_t f) |
| void | setBufferPredrawMethod (callback_t f) |
| void | setPreFrameMethod (callback_t f) |
| void | setPostFrameMethod (callback_t f) |
| void | setIntraFrameMethod (callback_t f) |
| virtual void | draw () |
| Function to draw the scene. More... | |
| virtual void | contextInit () |
| Function that is called immediately after a new context is created. More... | |
| virtual void | bufferPreDraw () |
| Function that is called once for each frame buffer of a gl context. More... | |
| virtual void | preFrame () |
| Function called before the Juggler frame starts. More... | |
| virtual void | intraFrame () |
| Function called during the application's drawing time. More... | |
| virtual void | postFrame () |
| Function called before updating trackers but after the frame is complete. More... | |
Protected Attributes | |
| callback_t | mDrawMethod |
| callback_t | mContextInit |
| callback_t | mPreframeMethod |
| callback_t | mPostframeMethod |
| callback_t | mIntraframeMethod |
| callback_t | mBufferPredrawMethod |
Definition at line 45 of file GlProcApp.h.
|
|
Definition at line 48 of file GlProcApp.h. Referenced by setBufferPredrawMethod, setContextInitMethod, setDrawMethod, setIntraFrameMethod, setPostFrameMethod, and setPreFrameMethod. |
|
|
Type for callbacks.
Definition at line 51 of file GlProcApp.h.
00052 {;}
|
|
|
Definition at line 53 of file GlProcApp.h.
00054 {;}
|
|
|
Definition at line 57 of file GlProcApp.h. References callback_t, and mDrawMethod.
00058 { mDrawMethod = f; }
|
|
|
Definition at line 59 of file GlProcApp.h. References callback_t, and mContextInit.
00060 { mContextInit = f; }
|
|
|
Definition at line 61 of file GlProcApp.h. References callback_t, and mBufferPredrawMethod.
00062 { mBufferPredrawMethod = f; }
|
|
|
Definition at line 63 of file GlProcApp.h. References callback_t, and mPreframeMethod.
00064 { mPreframeMethod = f; }
|
|
|
Definition at line 65 of file GlProcApp.h. References callback_t, and mPostframeMethod.
00066 { mPostframeMethod = f; }
|
|
|
Definition at line 67 of file GlProcApp.h. References callback_t, and mIntraframeMethod.
00068 { mIntraframeMethod = f; }
|
|
|
Function to draw the scene. Override this function with the user draw routine.
Implements vrj::GlApp. Definition at line 71 of file GlProcApp.h. References mDrawMethod.
00072 {
00073 if (!mDrawMethod.empty())
00074 { mDrawMethod(); }
00075 }
|
|
|
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 from vrj::GlApp. Definition at line 77 of file GlProcApp.h. References mContextInit.
00078 {
00079 if (!mContextInit.empty())
00080 { mContextInit(); }
00081 }
|
|
|
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 from vrj::GlApp. Definition at line 83 of file GlProcApp.h. References mBufferPredrawMethod.
00084 {
00085 if (!mBufferPredrawMethod.empty())
00086 { mBufferPredrawMethod(); }
00087 }
|
|
|
Function called before the Juggler frame starts. Called after tracker update but before start of a new frame. Reimplemented from vrj::App. Definition at line 89 of file GlProcApp.h. References mPreframeMethod.
00090 {
00091 if (!mPreframeMethod.empty())
00092 { mPreframeMethod(); }
00093 }
|
|
|
Function called during the application's drawing time.
Reimplemented from vrj::App. Definition at line 95 of file GlProcApp.h. References mIntraframeMethod.
00096 {
00097 if (!mIntraframeMethod.empty())
00098 { mIntraframeMethod(); }
00099 }
|
|
|
Function called before updating trackers but after the frame is complete.
Reimplemented from vrj::App. Definition at line 101 of file GlProcApp.h. References mPostframeMethod.
00102 {
00103 if (!mPostframeMethod.empty())
00104 { mPostframeMethod(); }
00105 }
|
|
|
Definition at line 108 of file GlProcApp.h. Referenced by draw, and setDrawMethod. |
|
|
Definition at line 109 of file GlProcApp.h. Referenced by contextInit, and setContextInitMethod. |
|
|
Definition at line 110 of file GlProcApp.h. Referenced by preFrame, and setPreFrameMethod. |
|
|
Definition at line 111 of file GlProcApp.h. Referenced by postFrame, and setPostFrameMethod. |
|
|
Definition at line 112 of file GlProcApp.h. Referenced by intraFrame, and setIntraFrameMethod. |
|
|
Definition at line 113 of file GlProcApp.h. Referenced by bufferPreDraw, and setBufferPredrawMethod. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002