Cabane.h 720 B

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