Vis 2 Demo  1.0
Technical illustration type real-time rendering of geometry
 All Classes Namespaces Files Functions Variables Typedefs Macros
Public Member Functions | Private Member Functions | List of all members
vis2::ModelTextured Class Reference

This class produces a textured model with polygon-based geometry. More...

Inheritance diagram for vis2::ModelTextured:
vis2::GeometricObjectTextured vis2::GeometricObject vis2::DrawableObject

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...
 
- Public Member Functions inherited from vis2::GeometricObjectTextured
 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...
 
- Public Member Functions inherited from vis2::GeometricObject
 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...
 
- Public Member Functions inherited from vis2::DrawableObject
 DrawableObject (glm::mat4 &_modelMatrix)
 Constructor. More...
 
virtual ~DrawableObject ()
 Destructor. More...
 

Private Member Functions

 ModelTextured (const ModelTextured &)
 

Additional Inherited Members

- Protected Attributes inherited from vis2::GeometricObjectTextured
GLuint uv_buffer_handle
 handle to the uv buffer object containing the vertex texture coordinates in object space More...
 
Texturediffuse_texture_Ptr
 handle to the texture for this object More...
 

Detailed Description

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.

Constructor & Destructor Documentation

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.

Parameters
[in]_modelMatrixis the model matrix that places the object in the world coordinate system,
[in]_shaderis the shader program used by this object,
[in]_diffuse_textureis the pointer to a texture object,
[in]_positions_Ptris a pointer to the vertex positions array,
[in]_normals_Ptris a pointer to the vertex normals array,
[in]_uv_Ptris a pointer to the texture coordinates array,
[in]_index_Ptris a pointer to the face index array,
[in]_vertex_countis the number of vertex entries in the vertex attribute arrays,
[in]_face_ind_countis the size of the face index array.

Definition at line 5 of file ModelTextured.cpp.

ModelTextured::~ModelTextured ( )
virtual

Destructor.

Definition at line 40 of file ModelTextured.cpp.

vis2::ModelTextured::ModelTextured ( const ModelTextured )
private

Member Function Documentation

void ModelTextured::draw ( glm::mat4 &  _projectionMatrix)
virtual

Draw function, called every frame.

Calls its parent's draw function.

Reimplemented from vis2::GeometricObjectTextured.

Definition at line 53 of file ModelTextured.cpp.

void ModelTextured::update ( double  _deltaT)
virtual

Empty update function.

Implements vis2::GeometricObjectTextured.

Definition at line 44 of file ModelTextured.cpp.


The documentation for this class was generated from the following files: