SceneOpenGL.h 853 B

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