#include <AppStarter_3DApplication.h>
Inheritance diagram for Moteur3D::AppStarter_3DApplication:
Public Member Functions | |
AppStarter_3DApplication (WindowParams *params) | |
Constructor. | |
~AppStarter_3DApplication () | |
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. | |
virtual void | Stop () |
Stops the execution of the Run() function (if it's running). This also affects Start(). | |
virtual void | ShowWindow () |
Shows the window if it can be shown and is currently hidden. Else does nothing. | |
virtual void | HideWindow () |
Hides the window if it can be hidden and is currently shown. Else does nothing. | |
Protected Member Functions | |
virtual bool | InitWindow (int width, int height, int bitsPerPixel, char *name, bool fullScreen) |
Initialises the window with the parameters given. | |
virtual void | InitGL () |
Initialises all the OpenGL stuff such as modelview matrix, Z-buffer and so on. | |
virtual void | Run () |
This is the main loop. it does NOT return until the window is closed, and must be called if you want the whole window stuff to work. | |
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 | OnIdle () |
This function is called just before OnRenderScene(). Put any code you want in it, generally application management stuff. | |
virtual void | OnResize (short width, short height) |
This function is called every time the window is resized. It modifies OpenGL's viewport. | |
virtual void | OnKey (KeyList key, bool keyDown) |
This function is called every time the user presses a key. | |
virtual void | OnMouseMove (const MouseInformations *mouseInfo) |
This function is called every time the mouse is moved inside the window's borders. | |
virtual void | OnMouseButton (const MouseInformations *mouseInfo, MouseButton button, bool buttonDown) |
This function is called every time a mouse button is pressed or released 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 | |
KeyPressed | m_KeysPressed |
Variable that remembers which special keys are held down. | |
Window * | m_Window |
Internal window's management. | |
int | m_Width |
Window's current width. | |
int | m_Height |
Window's current height. |
|
Constructor.
|
|
Destructor.
|
|
Hides the window if it can be hidden and is currently shown. Else does nothing.
|
|
Initialises all the OpenGL stuff such as modelview matrix, Z-buffer and so on.
Reimplemented in Moteur3D::AppStarter_ObjectViewer. |
|
Initialises the window with the parameters given.
|
|
This function is called just before OnRenderScene(). Put any code you want in it, generally application management stuff.
Implements Moteur3D::IEventManager. |
|
This function is called every time the user presses a key.
Implements Moteur3D::IEventManager. |
|
This function is called every time a mouse button is pressed or released inside the window's borders.
Implements Moteur3D::IEventManager. |
|
This function is called every time the mouse is moved inside the window's borders.
Implements Moteur3D::IEventManager. Reimplemented in Moteur3D::AppStarter_ObjectViewer. |
|
This function is called every time the wheel is used inside the window's borders.
Implements Moteur3D::IEventManager. Reimplemented in Moteur3D::AppStarter_ObjectViewer. |
|
This function is called when the display needs a new frame to be rendered. Put all display stuff in it.
Implements Moteur3D::IEventManager. Reimplemented in Moteur3D::AppStarter_ObjectViewer. |
|
This function is called every time the window is resized. It modifies OpenGL's viewport.
Implements Moteur3D::IEventManager. |
|
This is the main loop. it does NOT return until the window is closed, and must be called if you want the whole window stuff to work.
|
|
Shows the window if it can be shown and is currently hidden. Else does nothing.
|
|
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 in Moteur3D::AppStarter_ObjectViewer. |
|
Stops the execution of the Run() function (if it's running). This also affects Start().
|
|
Window's current height.
|
|
Variable that remembers which special keys are held down.
|
|
Window's current width.
|
|
Internal window's management.
|