1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #ifndef DEF_COLORCUBE
- #define DEF_COLORCUBE
- // Includes OpenGL
- #ifdef WIN32
- #include <GL/glew.h>
- #else
- #define GL3_PROTOTYPES 1
- #include <GLES3/gl3.h>
- #endif
- // Includes GLM
- #include <glm/glm.hpp>
- #include <glm/gtx/transform.hpp>
- #include <glm/gtc/type_ptr.hpp>
- // 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
|