PixelLightAPI  .
Protected Member Functions | Protected Attributes
PLScene::SceneApplication Class Reference

Scene application class. More...

#include <SceneApplication.h>

Inheritance diagram for PLScene::SceneApplication:
Inheritance graph
[legend]

List of all members.

Protected Member Functions

PLS_API void SetRootScene (PLScene::SceneContainer *pSceneContainer)
 Set root scene.
virtual PLS_API bool OnStart () override
 Initialization function that is called prior to OnInit()
virtual PLS_API void OnStop () override
 De-initialization function that is called after OnDeInit()
virtual PLS_API void OnUpdate () override
 Called to let the frontend update it's states.
virtual PLS_API void OnCreateRootScene ()
 Function that is called to create the application's root scene.

Protected Attributes

PLScene::SceneContextm_pSceneContext
PLScene::SceneContainerm_pRootScene

Detailed Description

Scene application class.

Remarks:
An application class that provides a scene graph for rendering
Note:

Member Function Documentation

PLS_API void PLScene::SceneApplication::SetRootScene ( PLScene::SceneContainer pSceneContainer) [protected]

Set root scene.

Parameters:
[in]pSceneContainerPointer to root scene container, can be a null pointer
virtual PLS_API bool PLScene::SceneApplication::OnStart ( ) [override, protected, virtual]

Initialization function that is called prior to OnInit()

Returns:
'true' if all went fine, else 'false' which will stop the application
Remarks:
The default implementation does the following tasks:

Reimplemented from PLRenderer::RendererApplication.

Reimplemented in PLEngine::EngineApplication, and PLEngine::ScriptApplication.

virtual PLS_API void PLScene::SceneApplication::OnStop ( ) [override, protected, virtual]

De-initialization function that is called after OnDeInit()

Remarks:
The default implementation does the following tasks:

Reimplemented from PLRenderer::RendererApplication.

Reimplemented in PLEngine::EngineApplication, and PLEngine::ScriptApplication.

virtual PLS_API void PLScene::SceneApplication::OnUpdate ( ) [override, protected, virtual]

Called to let the frontend update it's states.

Remarks:
The default implementation does the following tasks:

Reimplemented from PLRenderer::RendererApplication.

Reimplemented in PLEngine::EngineApplication, and PLEngine::ScriptApplication.

virtual PLS_API void PLScene::SceneApplication::OnCreateRootScene ( ) [protected, virtual]

Function that is called to create the application's root scene.

Note:
  • Part of the application framework initialization function "OnStart()"
  • The default implementation creates a standard root scene

Reimplemented in PLEngine::EngineApplication.


Member Data Documentation

The scene context, can be a null pointer

Root scene (can be a null pointer)


The documentation for this class was generated from the following file:


PixelLight PixelLight 0.9.10-R1
Copyright (C) 2002-2011 by The PixelLight Team
Last modified Fri Dec 23 2011 15:51:24
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported