Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
Public Member Functions | List of all members
Mesh Class Reference

Mesh class. More...

#include <mesh.h>

Public Member Functions

 Mesh ()
 
 Mesh (const std::vector< Vertex > &vertices, const std::vector< Uint32 > &indices={})
 
 ~Mesh ()
 
void Bind () const
 
void Draw (unsigned int mode=GL_TRIANGLES) const
 
void Update (const std::vector< Vertex > &new_vertices, const std::vector< Uint32 > &new_indices={})
 
size_t GetVertexCount () const
 

Detailed Description

Mesh class.

Version
0.0.3

Constructor & Destructor Documentation

◆ Mesh() [1/2]

Mesh::Mesh ( )

◆ Mesh() [2/2]

Mesh::Mesh ( const std::vector< Vertex > &  vertices,
const std::vector< Uint32 > &  indices = {} 
)
explicit

◆ ~Mesh()

Mesh::~Mesh ( )

Member Function Documentation

◆ Bind()

void Mesh::Bind ( ) const

◆ Draw()

void Mesh::Draw ( unsigned int  mode = GL_TRIANGLES) const

◆ GetVertexCount()

size_t Mesh::GetVertexCount ( ) const

◆ Update()

void Mesh::Update ( const std::vector< Vertex > &  new_vertices,
const std::vector< Uint32 > &  new_indices = {} 
)

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