#ifndef OPENGL_HPP #define OPENGL_HPP // Includes #include #include "engine/sdl.hpp" #include "engine/buffers.hpp" #include "engine/shaders.hpp" // OpenGL Context Class class OpenGLContext { public: OpenGLContext(SDLWindow& window); ~OpenGLContext(); bool isInitialized() const; void makeCurrent(); void swapBuffers(); float getFrameTime(); private: SDLWindow& window; SDL_GLContext glContext; Uint32 lastTime; float frameTime; }; #endif