#ifndef DEF_COLORCUBE #define DEF_COLORCUBE // Includes OpenGL #ifdef WIN32 #include #else #define GL3_PROTOTYPES 1 #include #endif // Includes GLM #include #define GLM_ENABLE_EXPERIMENTAL #include #include // Classe ColorCube class ColorCube { public: ColorCube(); ColorCube(float taille, float red, float green, float blue); ~ColorCube(); void setColor(float red, float green, float blue); void afficher();// VĂ©rouiller un shader et lui envoyer projection et modelview avant void move(glm::vec3 deplacement); private: float m_vertices[42]; float m_couleurs[42]; }; unsigned int getNbColorCubes(); #endif