Vis 2
Kinetic Visualization for 3D shape and structure
 All Classes Namespaces Functions Pages
MeshRenderable.h
1 #pragma once
2 #include "IRenderable.h"
3 #include "Texture.h"
4 #include "AbstractMesh.h"
5 #include "MeshRenderer.h"
6 
7 class MeshRenderable : public virtual IRenderable
8 {
9 
10 public:
11  MeshRenderable(std::string name, AbstractMesh* mesh,MeshRenderer* meshRenderer);
12  virtual ~MeshRenderable();
13 
14  //IRenderable
15  virtual void initialize();
16  virtual void bindResources(const Shader * shader);
17  virtual void unbindResources();
18  virtual void draw();
19 
20  AbstractMesh* _mesh;
21 
22  //VAO
23  GLuint _vao;
24 
25  //VBO
26  GLuint _vboVertices;
27  GLuint _vboNormals;
28  GLuint _vboTangents;
29  GLuint _vboBitangents;
30  GLuint _vboTexCoords;
31  GLuint _vboColors;
32 
33  //Possible Indexed VBO
34  GLuint _vboIndices;
35 
36  //Possible Textured
37  Texture * _texture;
38 
39  MeshRenderer* _meshRenderer;
40 
41 };
Definition: AbstractMesh.h:5
Definition: MeshRenderer.h:14
Definition: IRenderable.h:11
Definition: Texture.h:12
Definition: Shader.h:24
Definition: MeshRenderable.h:7