#include <ISceneObject.hpp>
ISceneObject is the base-class for objects in the scene-graph. It automatically manages id-assignments.
Definition at line 11 of file ISceneObject.hpp.
Constructs an ISceneObject. Assigns a new id to this object.
- Parameters
-
app | The global application |
pickable | Wheter the object is packable or not |
Definition at line 4 of file ISceneObject.cpp.
id_t const& getId |
( |
| ) |
const |
|
inline |
Accessor to the objects id.
- Returns
- The objects id.
Definition at line 23 of file ISceneObject.hpp.
id_t const getPickId |
( |
| ) |
const |
|
inline |
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.
virtual bool update |
( |
double |
time, |
|
|
double |
timeDelta |
|
) |
| |
|
virtual |
Abstract function that can be used to update the objects data. Will be called every frame by the scene-graph.
- Parameters
-
time | The absolute frame time |
timeDelta | The time since the last frame |
Reimplemented in SceneInstance, and SimpleMeshInstance.
The documentation for this class was generated from the following files: