#ifndef DEF_SCENEOPENGL #define DEF_SCENEOPENGL // Include Windows #ifdef WIN32 #include // Include Mac #elif __APPLE__ #define GL3_PROTOTYPES 1 #include #include // Include UNIX/Linux #else #define GL3_PROTOTYPES 1 #include #endif // Includes GLM #include #define GLM_ENABLE_EXPERIMENTAL #include #include #include // Autres includes #include #include #include #include "Shader.h" #include "InputAndJoy.h" #include "TexturLoader.h" #include "Camera.h" #include "FrameBuffer.h" #include "3D/OBJ.h" #include "3D/Mosaic.h" // Classe class SceneOpenGL { public: SceneOpenGL(std::string titreFenetre, int largeurFenetre, int hauteurFenetre); ~SceneOpenGL(); bool initialiserFenetre(); bool initGL(); void bouclePrincipale(); private: std::string m_titreFenetre; int m_largeurFenetre; int m_hauteurFenetre; SDL_Window* m_fenetre; SDL_GLContext m_contexteOpenGL; InputAndJoy m_input; TexturLoader m_texturLoader; Shader m_shader; Shader m_shLight; Shader m_shGris; }; #endif