Public Member Functions |
| | VLApp () |
| void | initialize () |
|
virtual void | addedListenerEvent (OpenGLContext *openglContext) |
|
virtual void | removedListenerEvent (OpenGLContext *) |
|
virtual void | keyReleaseEvent (unsigned short, EKey key) |
|
virtual void | destroyEvent () |
|
virtual void | updateEvent () |
|
virtual void | resizeEvent (int, int) |
|
virtual void | initEvent () |
|
virtual void | enableEvent (bool) |
|
virtual void | mouseMoveEvent (int, int) |
|
virtual void | mouseUpEvent (EMouseButton, int, int) |
|
virtual void | mouseDownEvent (EMouseButton, int, int) |
|
virtual void | mouseWheelEvent (int) |
|
virtual void | keyPressEvent (unsigned short, EKey) |
|
virtual void | fileDroppedEvent (const std::vector< String > &) |
|
virtual void | visibilityEvent (bool) |
| RenderingAbstract * | rendering () |
| const RenderingAbstract * | rendering () const |
| void | setRendering (RenderingAbstract *rendering) |
| SceneManagerActorTree * | sceneManager () |
| const SceneManagerActorTree * | sceneManager () const |
| void | setTrackball (TrackballManipulator *trackball) |
| TrackballManipulator * | trackball () |
|
const TrackballManipulator * | trackball () const |
| double | fps () const |
| virtual void | updateScene () |
| void | setAppletName (const String &app_name) |
| const String & | appletName () const |
Protected Member Functions |
|
void | bindManipulators (Camera *camera) |
Private Attributes |
|
ref< RenderingAbstract > | mRendering |
|
ref< TrackballManipulator > | mTrackball |
|
ref< SceneManagerActorTree > | mSceneManagerActorTree |
|
ref< ReadPixels > | mReadPixels |
|
String | mAppletName |
|
double | mStartTime |
|
double | mFPS |
|
int | mFrameCount |
The Applet class is an utilitly UIEventListener that features a ghost manipulator, trackball manipulator, an FPS counter and a simple rendering pipeline.
Default key bindings:
- Key_Escape: calls openglContext()->quitApplication()
- Key_T: enables the TrackballManipulator.
- Key_F: enables the GhostCameraManipulator (fly mode).
- Key_F1: toggles fullscreen mode if supported.
- Key_F5: saves a screenshot of the current OpenGL window.
- Key_C: toggles the continuous update for the OpenGL window (see also OpenGLContext::setContinuousUpdate()).
- Key_U: updates the OpenGL window content by calling openglContext()->update().
Definition at line 31 of file vlapp.hpp.