Cristal.h 676 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef DEF_CRISTAL
  2. #define DEF_CRISTAL
  3. // Includes OpenGL
  4. #ifdef WIN32
  5. #include <glew.h>
  6. #else
  7. #define GL3_PROTOTYPES 1
  8. #include <GL3/gl3.h>
  9. #endif
  10. // Includes GLM
  11. #include <glm.hpp>
  12. #include <gtx/transform.hpp>
  13. #include <gtc/type_ptr.hpp>
  14. // Autres includes
  15. #include "Shader.h"
  16. #include "Texture.h"
  17. // Classe Cristal
  18. class Cristal
  19. {
  20. public:
  21. Cristal(std::string const vertexShader, std::string const fragmentShader, std::string const texture);
  22. Cristal();
  23. void afficher(glm::mat4 &projection, glm::mat4 &modelview);
  24. private:
  25. Shader m_shader;
  26. Texture m_texture;
  27. float m_vertices[72];
  28. float m_coordTexture[48];
  29. };
  30. #endif