Brenta Engine 1.1
|
Model class. More...
#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 has_mipmap=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::shader_name_t shader) |
Draw the model. | |
Data Fields | |
GLint | wrapping |
Texture wrapping mode. | |
GLint | filtering_min |
Texture filtering mode. | |
GLint | filtering_mag |
Texture filtering mode. | |
GLboolean | has_mipmap |
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 | has_mipmap = GL_TRUE, | ||
GLint | mipmap_min = GL_LINEAR_MIPMAP_LINEAR, | ||
GLint | mipmap_mag = GL_LINEAR, | ||
bool | flip = true ) |
Construct a new Model object.
path | Path to the model |
wrapping | Texture wrapping mode |
filtering_min | Texture filtering mode |
filtering_mag | Texture filtering mode |
hasMipmap | If the texture has a mipmap |
mipmap_min | Mipmap filtering mode |
mipmap_mag | Mipmap filtering mode |
flip | If the texture should be flipped |
void model::draw | ( | types::shader_name_t | shader | ) |
GLint brenta::model::filtering_mag |
GLint brenta::model::filtering_min |
GLboolean brenta::model::has_mipmap |
GLint brenta::model::mipmap_mag |
GLint brenta::model::mipmap_min |
GLint brenta::model::wrapping |