Cubios::Scene
Constructors
Scene
Summary
Constructs GFX Engine scene object
Synopsis
Public Methods
CreateObject
Summary
Creates an instance of GFX scene object in the list of objects added to the scene
Arguments
- obj - pointer to an instance of SceneObject
Output
Returns unique identifier of an object
Synopsis
CreateObjectWithID
Summary
Creates an instance of GFX scene object with given identifier in the list of objects added to the scene
Arguments
- id - identifier of the object
- obj - pointer to an instance of SceneObject
Output
Returns true if object has been added to the list successfully, otherwise false
Synopsis
CreateSound
Summary
Creates an instance of sound object in the list of objects added to the scene
Arguments
- obj - pointer to an instance of sound object
Output
Returns unique identifier of an object
Synopsis
CreateSoundWithID
Summary
Creates an instance of sound object with given identifier in the list of objects added to the scene
Arguments
- id - identifier of the object
- obj - pointer to an instance of sound object
Output
Returns true if object has been added to the list successfully, otherwise false
Synopsis
DisposeObjectWithID
Summary
Removes object from the list of objects that are added to the scene and disposes the object
Arguments
- id - identifier of the object
Output
Returns true if object has been removed to the list successfully, otherwise false
Synopsis
DisposeSoundWithID
Summary
Removes sound object from the list of objects that are added to the scene and disposes the object
Arguments
- id - identifier of the object
Output
Returns true if object has been removed to the list successfully, otherwise false
Synopsis
DisposeAllObjects
Summary
Removes and disposes all objects from the scene
Synopsis
Play
Summary
Plays sound object
Arguments
- id - identifier of the sound object
- volume - audio playback volume
Synopsis
Public Operators
operator [ ]
Summary
Operator is used for accessing scene object via their identifiers
Output
Returns a pointer to requested scene object
Synopsis