SceneOpenGL.h 841 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef SCENEOPENGL_H_INCLUDED
  2. #define SCENEOPENGL_H_INCLUDED
  3. // Includes GLM
  4. #include <glm/glm.hpp>
  5. #define GLM_ENABLE_EXPERIMENTAL
  6. #include <glm/gtx/transform.hpp>
  7. #include <glm/gtc/type_ptr.hpp>
  8. // Includes OpenGL
  9. #include <SDL2/SDL.h>
  10. #define GL3_PROTOTYPES 1
  11. #include <GLES3/gl3.h>
  12. //Includes de base
  13. #include <string>
  14. #include <iostream>
  15. //Autres includes
  16. #include "Shader.h"
  17. #include "Mosaic.h"
  18. #include "Input.h"
  19. class SceneOpenGL
  20. {
  21. public:
  22. SceneOpenGL(std::string titre, int largeur, int hauteur);
  23. ~SceneOpenGL();
  24. bool initialiserFenetre();
  25. bool initGL();
  26. void bouclePrincipale();
  27. private:
  28. std::string m_titreFenetre;
  29. int m_largeurFenetre;
  30. int m_hauteurFenetre;
  31. SDL_Window* m_fenetre;
  32. SDL_GLContext m_contexteOpenGL;
  33. Input m_input;
  34. };
  35. #endif // SCENEOPENGL_H_INCLUDED