#include <Scene.hpp>
SceneInstance holds information for one instance of a Scene-object.
Definition at line 11 of file Scene.hpp.
Creates a SceneInstance
- Parameters
-
app | The global application |
parent | The scene of which this object is an instance |
pickable | If pickable is true this object will be drawn into the id-buffer to make it visible to the picker |
Definition at line 3 of file Scene.cpp.
id_t const& getId |
( |
| ) |
const |
|
inlineinherited |
Accessor to the objects id.
- Returns
- The objects id.
Definition at line 23 of file ISceneObject.hpp.
id_t const getPickId |
( |
| ) |
const |
|
inlineinherited |
Accessor to the picking-id. This is 0 for non-pickable obejcts, and the objects id for every other object.
- Returns
- The picking-id.
Definition at line 28 of file ISceneObject.hpp.
Accessor for instances transformation
- Returns
- a reference of the instances transformation
Definition at line 45 of file Scene.hpp.
void queueAnimation |
( |
float |
time, |
|
|
uint |
animation |
|
) |
| |
Queues an animation
- Parameters
-
time | The time to start at |
animation | The animation to queue |
Definition at line 32 of file Scene.cpp.
void queueAnimation |
( |
float |
time, |
|
|
string |
animation |
|
) |
| |
Queues an animation
- Parameters
-
time | The time to start at |
animation | The name of the animation to queue |
Definition at line 36 of file Scene.cpp.
bool update |
( |
double |
time, |
|
|
double |
timeDelta |
|
) |
| |
|
virtual |
Updates animation-information.
- Parameters
-
time | The absolute frame time |
timeDelta | The time since the last frame |
- Returns
- Wheter or not the object has changed since the last frame
Reimplemented from ISceneObject.
Definition at line 14 of file Scene.cpp.
The curren animation-info
Definition at line 35 of file Scene.hpp.
All queued animations
Definition at line 36 of file Scene.hpp.
The scene of which this object is an instance
Definition at line 32 of file Scene.hpp.
The state of this instance (all model-/bone-matrices)
Definition at line 34 of file Scene.hpp.
The transformation of this instance
Definition at line 33 of file Scene.hpp.
The documentation for this class was generated from the following files: