Mesh class.
More...
#include <mesh.h>
|
| 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 |
|
Mesh class.
- A mesh is a collection of vertices and indices
- VAO, VBO and EBO related to the mesh
- Material (SOON)
- Version
- 0.0.3
◆ Mesh() [1/2]
◆ Mesh() [2/2]
Mesh::Mesh |
( |
const std::vector< Vertex > & |
vertices, |
|
|
const std::vector< Uint32 > & |
indices = {} |
|
) |
| |
|
explicit |
◆ ~Mesh()
◆ 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:
- engine/public/core/renderer/mesh.h
- engine/private/core/renderer/mesh.cpp