#include <AppStarter_ObjectViewer.h>
Inheritance diagram for Moteur3D::AppStarter_ObjectViewer:
Public Member Functions | |
AppStarter_ObjectViewer (WindowParams *params) | |
Constructor. | |
~AppStarter_ObjectViewer () | |
Destructor. | |
virtual void | Start () |
Starts the window and its features. this involves creating and showing the window, initializing all the openGL stuff, and running the main loop. IMPORTANT : this function, as it calls function Run(), does NOT return until the window is closed. Once you're in, you can still control your app inside OnRenderScene and OnIdle, for example. | |
Protected Member Functions | |
virtual void | InitObject () |
Initialises the object to be displayed. Called once before the first display. | |
virtual void | DisplayObject () |
Displays the object to be shown. Called by OnRenderScene() at every frame. | |
virtual void | InitGL () |
Initialises all the OpenGL stuff such as modelview matrix, Z-buffer and so on. | |
virtual void | OnRenderScene () |
This function is called when the display needs a new frame to be rendered. Put all display stuff in it. | |
virtual void | OnMouseMove (const MouseInformations *mouseInfo) |
This function is called every time the mouse is moved inside the window's borders. | |
virtual void | OnMouseWheel (const MouseInformations *mouseInfo, short displacement) |
This function is called every time the wheel is used inside the window's borders. | |
Protected Attributes | |
SphericalCamera | m_camera |
Camera used to rotate around the object. | |
int | m_GLLists |
Display lists used for our axes. |
|
Constructor.
|
|
Destructor.
|
|
Displays the object to be shown. Called by OnRenderScene() at every frame.
|
|
Initialises all the OpenGL stuff such as modelview matrix, Z-buffer and so on.
Reimplemented from Moteur3D::AppStarter_3DApplication. |
|
Initialises the object to be displayed. Called once before the first display.
|
|
This function is called every time the mouse is moved inside the window's borders.
Reimplemented from Moteur3D::AppStarter_3DApplication. |
|
This function is called every time the wheel is used inside the window's borders.
Reimplemented from Moteur3D::AppStarter_3DApplication. |
|
This function is called when the display needs a new frame to be rendered. Put all display stuff in it.
Reimplemented from Moteur3D::AppStarter_3DApplication. |
|
Starts the window and its features. this involves creating and showing the window, initializing all the openGL stuff, and running the main loop. IMPORTANT : this function, as it calls function Run(), does NOT return until the window is closed. Once you're in, you can still control your app inside OnRenderScene and OnIdle, for example.
Reimplemented from Moteur3D::AppStarter_3DApplication. |
|
Camera used to rotate around the object.
|
|
Display lists used for our axes.
|