12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #ifndef DEF_CUBE
- #define DEF_CUBE
- // Includes OpenGL
- #ifdef WIN32
- #include <glew.h>
- #else
- #define GL3_PROTOTYPES 1
- #include <GLES3/gl3.h>
- #endif
- // Includes GLM
- #include <glm/glm.hpp>
- #define GLM_ENABLE_EXPERIMENTAL
- #include <glm/gtx/transform.hpp>
- #include <glm/gtc/type_ptr.hpp>
- // Includes
- #include "Shader.h"
- // Classe Cube
- class Cube
- {
- public:
- Cube(float taille, std::string const vertexShader, std::string const fragmentShader);
- ~Cube();
- void afficher(glm::mat4 &projection, glm::mat4 &modelview);
- protected:
- Shader m_shader;
- float m_vertices[108];
- float m_couleurs[108];
- };
- #endif
|