SleakEngine 1.0.0
C++23 multi-backend game engine
Loading...
Searching...
No Matches
Sleak::VertexGroup Class Reference

#include <MeshData.hpp>

Public Member Functions

 VertexGroup ()=default
void AddVertex (const Vertex &vertex)
void AddVertex (std::initializer_list< Vertex > vertexList)
void clear ()
const VertexGetData () const
VertexGetMutableData ()
void * GetRawData ()
size_t GetSize () const
size_t GetSizeInBytes () const
void release ()

Detailed Description

Growable CPU-side buffer of Vertex, ready to hand to MeshBatch::CreateMesh.

Definition at line 76 of file MeshData.hpp.

Constructor & Destructor Documentation

◆ VertexGroup()

Sleak::VertexGroup::VertexGroup ( )
default

Member Function Documentation

◆ AddVertex() [1/2]

void Sleak::VertexGroup::AddVertex ( const Vertex & vertex)
inline

Definition at line 80 of file MeshData.hpp.

◆ AddVertex() [2/2]

void Sleak::VertexGroup::AddVertex ( std::initializer_list< Vertex > vertexList)
inline

Definition at line 84 of file MeshData.hpp.

◆ clear()

void Sleak::VertexGroup::clear ( )
inline

Definition at line 94 of file MeshData.hpp.

◆ GetData()

const Vertex * Sleak::VertexGroup::GetData ( ) const
inline

Definition at line 88 of file MeshData.hpp.

◆ GetMutableData()

Vertex * Sleak::VertexGroup::GetMutableData ( )
inline

Definition at line 89 of file MeshData.hpp.

◆ GetRawData()

void * Sleak::VertexGroup::GetRawData ( )
inline

Definition at line 90 of file MeshData.hpp.

◆ GetSize()

size_t Sleak::VertexGroup::GetSize ( ) const
inline

Definition at line 91 of file MeshData.hpp.

◆ GetSizeInBytes()

size_t Sleak::VertexGroup::GetSizeInBytes ( ) const
inline

Definition at line 92 of file MeshData.hpp.

◆ release()

void Sleak::VertexGroup::release ( )
inline

Definition at line 95 of file MeshData.hpp.