![]() |
Number5
Visualisierung 2 Project - Florian Schober (0828151, f.schober@live.com), Andreas Walch (0926780, walch.andreas89@gmail.com)
|
Public Member Functions | |
Mesh (Scene *scene, string const &name, GLuint const baseIdx, GLuint const idxCount, Material *material) | |
void | drawInstances (Shader *shader, set< SceneInstance * > const &instances) |
Private Attributes | |
Scene * | m_scene |
string | m_name |
vector< int > | m_nodeIndices |
GLuint | m_baseIndex |
GLuint | m_indexCount |
Material * | m_material |
Friends | |
class | Scene |
Scene::Mesh contains information about one Mesh in the scene. It does not host the vertex-data, since all vertices for a whole scene are stored into a single VBO.
Mesh | ( | Scene * | scene, |
string const & | name, | ||
GLuint const | baseIdx, | ||
GLuint const | idxCount, | ||
Material * | material | ||
) |
Constructs a Scene::Mesh.
scene | The scene this mesh belongs to |
name | The name of the mesh |
baseIdx | The index with wich the vertex-data for this mesh starts |
idxCount | The index-count for vertex-data that is used by this mesh |
material | The material for this mesh |
void drawInstances | ( | Shader * | shader, |
set< SceneInstance * > const & | instances | ||
) |
|
private |
|
private |
|
private |