SimpleGL  1.1.0
A framework for platform independent rendering
glfw_window_gl.hpp
Go to the documentation of this file.
1 
8 #ifndef GLFW_WINDOW_GL_HPP
9 #define GLFW_WINDOW_GL_HPP
10 
11 #include <SimpleGL_gl/SimpleGL_gl_Export.h>
12 
13 #include <string>
14 
15 #include <SimpleGL/glfw_window.hpp>
16 
17 namespace sgl {
18 
24  class SIMPLEGL_GL_EXPORT WindowGL : public Window {
25 
26  public:
35  WindowGL(int width, int height, std::string title, bool vsync = false);
36 
42  void setVSync(bool vsync);
43 
45  void swapBuffers() override;
46  };
47 }
48 
49 #endif /* GLFW_WINDOW_GL_HPP */
This class provides a basic GLFW window.
Definition: glfw_window.hpp:29
Generic namespace for the SimpleGL framework.
Definition: application.hpp:18
This class provides a GLFW window with OpenGL context.