Vis 2 Demo  1.0
Technical illustration type real-time rendering of geometry
 All Classes Namespaces Files Functions Variables Typedefs Macros
QuadTextured.h
Go to the documentation of this file.
1 #ifndef __QUAD_TEXTURED_H__
2 #define __QUAD_TEXTURED_H__
3 
4 #include <glew.h>
5 #include "DrawableObject.h"
6 #include "../visualisation/ShaderController.h"
7 #include "../visualisation/Texture.h"
8 
9 #define QUAD_TEXTURED_VERTEX_COUNT 4
10 #define QUAD_TEXTURED_INDEX_COUNT 6
11 
12 namespace vis2
13 {
16  {
17  public:
19 
25  QuadTextured(glm::mat4 _modelMatrix, ShaderController* _shader_ctrl, bool _b_fill_window);
26 
28 
29  virtual ~QuadTextured();
30 
32  virtual void update(double _deltaT);
33 
35 
38  virtual void draw(glm::mat4 & _projectionMatrix);
39 
41 
46  void draw(glm::mat4 & _projectionMatrix, glm::vec3 _edge_color);
47 
48  private:
51 
52  GLuint vao_handle;
54 
59 
62  static const float generic_normlas[QUAD_TEXTURED_VERTEX_COUNT * 3];
63  static const float generic_uv[QUAD_TEXTURED_VERTEX_COUNT * 2];
64  static const unsigned int generic_indices[QUAD_TEXTURED_INDEX_COUNT];
65 
67  QuadTextured( const QuadTextured&);
68  };
69 }
70 
71 
72 
73 #endif