OpenClonk
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 155 of file StdMesh.h.

Member Typedef Documentation

◆ Vertex

Definition at line 161 of file StdMesh.h.

Member Function Documentation

◆ GetFace()

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

Definition at line 167 of file StdMesh.h.

Referenced by StdSubMeshInstance::LoadFacesForCompletion().

167 { return Faces[i]; }
Here is the caller graph for this function:

◆ GetMaterial()

const StdMeshMaterial& StdSubMesh::GetMaterial ( ) const
inline

Definition at line 170 of file StdMesh.h.

Referenced by StdSubMeshInstance::StdSubMeshInstance().

170 { return *Material; }
Here is the caller graph for this function:

◆ GetNumFaces()

size_t StdSubMesh::GetNumFaces ( ) const
inline

Definition at line 168 of file StdMesh.h.

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

168 { return Faces.size(); }
Here is the caller graph for this function:

◆ GetNumVertices()

size_t StdSubMesh::GetNumVertices ( ) const
inline

Definition at line 165 of file StdMesh.h.

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

165 { return Vertices.size(); }
Here is the caller graph for this function:

◆ GetOffsetInIBO()

size_t StdSubMesh::GetOffsetInIBO ( ) const
inline

Definition at line 174 of file StdMesh.h.

Referenced by CStdGL::PrepareMaterial().

174 { return index_buffer_offset; }
Here is the caller graph for this function:

◆ GetOffsetInVBO()

size_t StdSubMesh::GetOffsetInVBO ( ) const
inline

Definition at line 173 of file StdMesh.h.

Referenced by CStdGL::PrepareMaterial().

173 { return vertex_buffer_offset; }
Here is the caller graph for this function:

◆ GetVertex()

const Vertex& StdSubMesh::GetVertex ( size_t  i) const
inline

Definition at line 164 of file StdMesh.h.

164 { return Vertices[i]; }

◆ GetVertices()

const std::vector<Vertex>& StdSubMesh::GetVertices ( ) const
inline

Definition at line 163 of file StdMesh.h.

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

163 { return Vertices; }
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ StdMesh

friend class StdMesh
friend

Definition at line 157 of file StdMesh.h.

◆ StdMeshLoader

friend class StdMeshLoader
friend

Definition at line 158 of file StdMesh.h.

◆ StdMeshMaterialUpdate

friend class StdMeshMaterialUpdate
friend

Definition at line 159 of file StdMesh.h.


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