#ifndef DEF_CUBE #define DEF_CUBE // Include Windows #ifdef WIN32 #include // Include Mac #elif __APPLE__ #define GL3_PROTOTYPES 1 #include // Include UNIX/Linux #else #define GL3_PROTOTYPES 1 #include #endif // Includes GLM #include #define GLM_ENABLE_EXPERIMENTAL #include #include // Includes #include "macro.h" #include "Shader.h" // Classe Cube class Cube { public: Cube(float taille); ~Cube(); void charger(); void afficher(glm::mat4 &projection, glm::mat4 &modelview); void updateVBO(void *donnees, int tailleBytes, int decalage); protected: float m_vertices[108]; float m_couleurs[108]; GLuint m_vboID; int m_tailleVerticesBytes; int m_tailleCouleursBytes; GLuint m_vaoID; }; #endif