#include <SimpleMesh.hpp>
SimpleMeshInstance is an instance of a simple-mesh. It will actually be rendered and is registered in the scene-graph.
Definition at line 11 of file SimpleMesh.hpp.
Creates a SimpleMeshInstance
- Parameters
-
app | The global application |
mesh | The SimpleMesh 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 6 of file SimpleMesh.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 22 of file SimpleMesh.hpp.
Sets all uniforms in the shader that are necessary for this instance to be drawn.
- Parameters
-
args | The DrawArgs that should be used for this rendering |
shader | The shader that should be used for this rendering |
Definition at line 17 of file SimpleMesh.cpp.
void uniform |
( |
string const & |
name, |
|
|
t |
value |
|
) |
| |
|
inline |
Sets a specific uniform for this instance.
- Parameters
-
name | The uniform-name |
value | The uniform's value |
Definition at line 58 of file SimpleMesh.hpp.
bool update |
( |
double |
time, |
|
|
double |
timeDelta |
|
) |
| |
|
virtual |
Actually does nothing but to return wheter or not the objects transformation has changed since the last frame.
- Parameters
-
time | The absolute frame time - ignored |
timeDelta | The time since the last frame - ignored |
Reimplemented from ISceneObject.
Definition at line 30 of file SimpleMesh.cpp.
The transformation of this instance
Definition at line 14 of file SimpleMesh.hpp.
map<string,function<void(Shader*)> > m_uniforms |
|
private |
A map of modifier to enable custom uniform-settings for each instance
Definition at line 15 of file SimpleMesh.hpp.
The documentation for this class was generated from the following files: