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.

167 { return Faces[i]; }

Referenced by StdSubMeshInstance::LoadFacesForCompletion().

Here is the caller graph for this function:

◆ GetMaterial()

const StdMeshMaterial& StdSubMesh::GetMaterial ( ) const
inline

Definition at line 170 of file StdMesh.h.

170 { return *Material; }

Referenced by StdSubMeshInstance::StdSubMeshInstance().

Here is the caller graph for this function:

◆ GetNumFaces()

size_t StdSubMesh::GetNumFaces ( ) const
inline

Definition at line 168 of file StdMesh.h.

168 { return Faces.size(); }

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

Here is the caller graph for this function:

◆ GetNumVertices()

size_t StdSubMesh::GetNumVertices ( ) const
inline

Definition at line 165 of file StdMesh.h.

165 { return Vertices.size(); }

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

Here is the caller graph for this function:

◆ GetOffsetInIBO()

size_t StdSubMesh::GetOffsetInIBO ( ) const
inline

Definition at line 174 of file StdMesh.h.

174 { return index_buffer_offset; }

◆ GetOffsetInVBO()

size_t StdSubMesh::GetOffsetInVBO ( ) const
inline

Definition at line 173 of file StdMesh.h.

173 { return vertex_buffer_offset; }

◆ 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.

163 { return Vertices; }

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

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: