OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
StdSubMesh Class Reference

#include <StdMesh.h>

Public Types

typedef StdMeshVertex Vertex
 

Public Member Functions

const std::vector< Vertex > & GetVertices () const
 
const VertexGetVertex (size_t i) const
 
size_t GetNumVertices () const
 
const StdMeshFaceGetFace (size_t i) const
 
size_t GetNumFaces () const
 
const StdMeshMaterialGetMaterial () const
 
size_t GetOffsetInVBO () const
 
size_t GetOffsetInIBO () const
 

Friends

class StdMesh
 
class StdMeshLoader
 
class StdMeshMaterialUpdate
 

Detailed Description

Definition at line 157 of file StdMesh.h.

Member Typedef Documentation

Definition at line 163 of file StdMesh.h.

Member Function Documentation

const StdMeshFace& StdSubMesh::GetFace ( size_t  i) const
inline

Definition at line 169 of file StdMesh.h.

Referenced by StdSubMeshInstance::LoadFacesForCompletion().

169 { return Faces[i]; }

Here is the caller graph for this function:

const StdMeshMaterial& StdSubMesh::GetMaterial ( ) const
inline

Definition at line 172 of file StdMesh.h.

Referenced by StdSubMeshInstance::StdSubMeshInstance().

172 { return *Material; }

Here is the caller graph for this function:

size_t StdSubMesh::GetNumFaces ( ) const
inline

Definition at line 170 of file StdMesh.h.

Referenced by StdSubMeshInstance::LoadFacesForCompletion(), and StdMeshInstance::UpdateIBO().

170 { return Faces.size(); }

Here is the caller graph for this function:

size_t StdSubMesh::GetNumVertices ( ) const
inline

Definition at line 167 of file StdMesh.h.

Referenced by StdSubMeshInstance::LoadFacesForCompletion(), StdMeshLoader::LoadMeshBinary(), and StdMeshInstance::ReorderFaces().

167 { return Vertices.size(); }

Here is the caller graph for this function:

size_t StdSubMesh::GetOffsetInIBO ( ) const
inline

Definition at line 176 of file StdMesh.h.

176 { return index_buffer_offset; }
size_t StdSubMesh::GetOffsetInVBO ( ) const
inline

Definition at line 175 of file StdMesh.h.

175 { return vertex_buffer_offset; }
const Vertex& StdSubMesh::GetVertex ( size_t  i) const
inline

Definition at line 166 of file StdMesh.h.

166 { return Vertices[i]; }
const std::vector<Vertex>& StdSubMesh::GetVertices ( ) const
inline

Definition at line 165 of file StdMesh.h.

Referenced by StdSubMeshInstance::LoadFacesForCompletion(), and StdMeshInstance::ReorderFaces().

165 { return Vertices; }

Here is the caller graph for this function:

Friends And Related Function Documentation

friend class StdMesh
friend

Definition at line 159 of file StdMesh.h.

friend class StdMeshLoader
friend

Definition at line 160 of file StdMesh.h.

friend class StdMeshMaterialUpdate
friend

Definition at line 161 of file StdMesh.h.


The documentation for this class was generated from the following files: