SceneOpenGL.h 866 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 <GL3/gl3.h>
  11. //Includes de base
  12. #include <string>
  13. #include <iostream>
  14. //Autres includes
  15. #include "CamControl/InputAndJoy.h"
  16. #include "CamControl/Camera.h"
  17. #include "Cubes/Cube.h"
  18. class SceneOpenGL
  19. {
  20. public:
  21. SceneOpenGL(std::string titre, int largeur, int hauteur);
  22. ~SceneOpenGL();
  23. bool initialiserFenetre();
  24. bool initGL();
  25. void bouclePrincipale();
  26. private:
  27. std::string m_titreFenetre;
  28. int m_largeurFenetre;
  29. int m_hauteurFenetre;
  30. SDL_Window* m_fenetre;
  31. SDL_GLContext m_contexteOpenGL;
  32. Camera m_camera;
  33. InputAndJoy m_input;
  34. };
  35. #endif // SCENEOPENGL_H_INCLUDED