matf-rg-engine 1.0.0
Base for project for the Computer Graphics course at Faculty of Mathematics, University of Belgrade
|
Represents a mesh in the model in the OpenGL context. More...
#include <Mesh.hpp>
Public Member Functions | |
void | draw (const Shader *shader) |
Draws the mesh using a given shader. Called by the Model::draw function to draw all the meshes in the model. | |
void | destroy () |
Destroys the mesh in the OpenGL context. | |
Private Member Functions | |
Mesh (const std::vector< Vertex > &vertices, const std::vector< uint32_t > &indices, std::vector< Texture * > textures) | |
Constructs a Mesh object. | |
Private Attributes | |
uint32_t | m_vao {0} |
uint32_t | m_num_indices {0} |
std::vector< Texture * > | m_textures |
Friends | |
class | AssimpSceneProcessor |
Represents a mesh in the model in the OpenGL context.
|
private |
Constructs a Mesh object.
vertices | The vertices in the mesh. |
indices | The indices in the mesh. |
textures | The textures in the mesh. |
void engine::resources::Mesh::draw | ( | const Shader * | shader | ) |
Draws the mesh using a given shader. Called by the Model::draw function to draw all the meshes in the model.
shader | The shader to use for drawing. |
void engine::resources::Mesh::destroy | ( | ) |
Destroys the mesh in the OpenGL context.
|
friend |
|
private |
|
private |
|
private |