![]() |
Vis 2 Demo
1.0
Technical illustration type real-time rendering of geometry
|
This class produces a textured model with polygon-based geometry. More...
Public Member Functions | |
ModelTextured (glm::mat4 _modelMatrix, Shader *_shader, Texture *_diffuseTexture, const GLfloat *_positions_Ptr, const GLfloat *_normals_Ptr, const GLfloat *_uv_Ptr, const GLuint *_index_Ptr, const unsigned int _vertex_count, const unsigned int _face_ind_count) | |
Constructor. More... | |
virtual | ~ModelTextured () |
Destructor. More... | |
virtual void | update (double _deltaT) |
Empty update function. More... | |
virtual void | draw (glm::mat4 &_projectionMatrix) |
Draw function, called every frame. More... | |
![]() | |
GeometricObjectTextured (glm::mat4 _modelMatrix, Shader *_shader, Texture *_diffuse_texture, const float *_positions_Ptr, const unsigned int _pos_size, const float *_normals_Ptr, const unsigned int _norm_size, const float *_uv_Ptr, const unsigned int _uv_size, const unsigned int *_index_Ptr, const unsigned int _ind_size) | |
Constructor. More... | |
virtual | ~GeometricObjectTextured () |
Destructor. More... | |
![]() | |
GeometricObject (glm::mat4 _modelMatrix, Shader *_shader, const float *_positions_Ptr, const unsigned int _pos_size, const float *_normals_Ptr, const unsigned int _norm_size, const unsigned int *_index_Ptr, const unsigned int _ind_size) | |
Constructor. More... | |
virtual | ~GeometricObject () |
Destructor. More... | |
![]() | |
DrawableObject (glm::mat4 &_modelMatrix) | |
Constructor. More... | |
virtual | ~DrawableObject () |
Destructor. More... | |
Private Member Functions | |
ModelTextured (const ModelTextured &) | |
Additional Inherited Members | |
![]() | |
GLuint | uv_buffer_handle |
handle to the uv buffer object containing the vertex texture coordinates in object space More... | |
Texture * | diffuse_texture_Ptr |
handle to the texture for this object More... | |
This class produces a textured model with polygon-based geometry.
This class uses external geometry information (i.e. from an OBJ file).
Definition at line 11 of file ModelTextured.h.
ModelTextured::ModelTextured | ( | glm::mat4 | _modelMatrix, |
Shader * | _shader, | ||
Texture * | _diffuseTexture, | ||
const GLfloat * | _positions_Ptr, | ||
const GLfloat * | _normals_Ptr, | ||
const GLfloat * | _uv_Ptr, | ||
const GLuint * | _index_Ptr, | ||
const unsigned int | _vertex_count, | ||
const unsigned int | _face_ind_count | ||
) |
Constructor.
[in] | _modelMatrix | is the model matrix that places the object in the world coordinate system, |
[in] | _shader | is the shader program used by this object, |
[in] | _diffuse_texture | is the pointer to a texture object, |
[in] | _positions_Ptr | is a pointer to the vertex positions array, |
[in] | _normals_Ptr | is a pointer to the vertex normals array, |
[in] | _uv_Ptr | is a pointer to the texture coordinates array, |
[in] | _index_Ptr | is a pointer to the face index array, |
[in] | _vertex_count | is the number of vertex entries in the vertex attribute arrays, |
[in] | _face_ind_count | is the size of the face index array. |
Definition at line 5 of file ModelTextured.cpp.
|
virtual |
Destructor.
Definition at line 40 of file ModelTextured.cpp.
|
private |
|
virtual |
Draw function, called every frame.
Calls its parent's draw function.
Reimplemented from vis2::GeometricObjectTextured.
Definition at line 53 of file ModelTextured.cpp.
|
virtual |
Empty update function.
Implements vis2::GeometricObjectTextured.
Definition at line 44 of file ModelTextured.cpp.