|
Brenta Engine 1.2
|
The Mesh class represents a 3D model. More...
#include <mesh.hpp>
Data Structures | |
| class | builder |
| The Builder class is used to build a Mesh object. More... | |
| struct | config |
Public Member Functions | |
| mesh (config conf) | |
| void | draw (types::shader_name_t shader_name) |
Data Fields | |
| std::vector< types::vertex > | vertices |
| vertices of the mesh | |
| std::vector< unsigned int > | indices |
| indices of the mesh | |
| std::vector< types::texture > | textures |
| textures of the mesh | |
| GLint | wrapping |
| Type of texture wrapping. | |
| GLint | filtering_min |
| Minifying texture filtering. | |
| GLint | filtering_mag |
| Magnifying texture filtering. | |
| GLboolean | has_mipmap |
| Should the texture have a mipmap? | |
| GLint | mipmap_min |
| Type of mipmap minifying texture filtering. | |
| GLint | mipmap_mag |
| Type of mipmap magnifying texture filtering. | |
Static Public Attributes | |
| static const config | default_config |
The Mesh class represents a 3D model.
A mesh is a collection of vertices, indices and textures that represent a 3D model. The mesh can be drawn using a shader and calling the draw() method.
|
static |
| GLint brenta::mesh::filtering_mag |
| GLint brenta::mesh::filtering_min |
| GLboolean brenta::mesh::has_mipmap |
| std::vector<unsigned int> brenta::mesh::indices |
| GLint brenta::mesh::mipmap_mag |
Type of mipmap magnifying texture filtering.
Type of texture filtering used when magnifying (scaling up) a texture with mipmaps. Options are:
| GLint brenta::mesh::mipmap_min |
Type of mipmap minifying texture filtering.
Type of texture filtering used when minifying (scaling down) a texture with mipmaps. Options are:
| std::vector<types::texture> brenta::mesh::textures |
| std::vector<types::vertex> brenta::mesh::vertices |
| GLint brenta::mesh::wrapping |
Type of texture wrapping.
Options are: