Vis 2 Demo  1.0
Technical illustration type real-time rendering of geometry
 All Classes Namespaces Files Functions Variables Typedefs Macros
SpinningCubeTextured.h
Go to the documentation of this file.
1 #ifndef __SPINNING_CUBE_TEXTURED_H__
2 #define __SPINNING_CUBE_TEXTURED_H__
3 
5 #include "../visualisation/Texture.h"
6 
7 #define TEXTURED_CUBE_VERTEX_COUNT 24
8 #define TEXTURED_CUBE_INDEX_COUNT 36
9 
10 namespace vis2
11 {
13 
15  {
16  public:
18 
24  SpinningCubeTextured(glm::mat4 _modelMatrix, Shader* _shader, Texture* _diffuseTexture);
25 
27  virtual ~SpinningCubeTextured();
28 
30 
34  virtual void update(double _deltaT);
35 
37 
38  virtual void draw(glm::mat4 & _projectionMatrix);
39 
40  private:
42 
44  static const float generic_normlas[TEXTURED_CUBE_VERTEX_COUNT * 3];
45  static const float generic_uv[TEXTURED_CUBE_VERTEX_COUNT * 2];
46  static const unsigned int generic_indices[TEXTURED_CUBE_INDEX_COUNT];
47 
50  };
51 }
52 
53 
54 #endif