|
Brenta Engine 1.0
|
#include <model.hpp>
Data Structures | |
| class | Builder |
| Builder class for Model. More... | |
Public Member Functions | |
| Model () | |
| Empty constructor. | |
| Model (std::string const &path, GLint wrapping=GL_REPEAT, GLint filtering_min=GL_NEAREST, GLint filtering_mag=GL_LINEAR, GLboolean hasMipmap=GL_TRUE, GLint mipmap_min=GL_LINEAR_MIPMAP_LINEAR, GLint mipmap_mag=GL_LINEAR, bool flip=true) | |
| Construct a new Model object. | |
| void | Draw (Types::ShaderName shader) |
| Draw the model. | |
Data Fields | |
| GLint | wrapping |
| Texture wrapping mode. | |
| GLint | filtering_min |
| Texture filtering mode. | |
| GLint | filtering_mag |
| Texture filtering mode. | |
| GLboolean | hasMipmap |
| If the texture has a mipmap. | |
| GLint | mipmap_min |
| Mipmap filtering mode. | |
| GLint | mipmap_mag |
| Mipmap filtering mode. | |
| bool | flip |
| If the texture should be flipped. | |
Model class.
This class is used to load a model from a file and draw it
|
inline |
| Model::Model | ( | std::string const & | path, |
| GLint | wrapping = GL_REPEAT, | ||
| GLint | filtering_min = GL_NEAREST, | ||
| GLint | filtering_mag = GL_LINEAR, | ||
| GLboolean | hasMipmap = GL_TRUE, | ||
| GLint | mipmap_min = GL_LINEAR_MIPMAP_LINEAR, | ||
| GLint | mipmap_mag = GL_LINEAR, | ||
| bool | flip = true ) |
Construct a new Model object.
| void Model::Draw | ( | Types::ShaderName | shader | ) |
| GLint Brenta::Model::filtering_mag |
| GLint Brenta::Model::filtering_min |
| GLboolean Brenta::Model::hasMipmap |
| GLint Brenta::Model::mipmap_mag |
| GLint Brenta::Model::mipmap_min |
| GLint Brenta::Model::wrapping |