PROTO::KLUDGE  0.1
Quick prototyping library for games using SDL and OpenGL.
Mesh.hpp
Go to the documentation of this file.
1 #ifndef MESH_HPP
2 #define MESH_HPP
3 
4 #include <GL/glew.h>
5 
6 #include <glm/glm.hpp>
7 
10 #include "core/GLStates.hpp"
11 
12 namespace pk
13 {
14 
20 class Mesh : public GLDrawable, public GLTransformable
21 {
22  private:
27  Mesh(){};
28 
29  void updateNormals(GLfloat * vertices, unsigned int verticeCount, unsigned int * indices, unsigned int stride);
30 
31  public:
39  Mesh(GLfloat *vertices, unsigned int *indices, unsigned int numvertices, unsigned int numindices);
40 
41  ~Mesh();
42 
49  void draw(GLStates& states);
50 };
51 
52 }
53 
54 #endif //MESH_HPP
Definition: Game.hpp:7
Decorator class for creating easing OpenGL transformations for game objects.
Definition: GLTransformable.hpp:51
Definition: GLDrawable.hpp:16
Mesh()
Default constructor - INACCESSIBLE!
Definition: Mesh.hpp:27
void updateNormals(GLfloat *vertices, unsigned int verticeCount, unsigned int *indices, unsigned int stride)
void draw(GLStates &states)
Draw the Mesh to the screen.
Class for building OpenGL generic geometry.
Definition: Mesh.hpp:20
Stores the states used to draw OpenGL objects.
Definition: GLStates.hpp:16