Tatooine
base.h
Go to the documentation of this file.
1#ifndef TATOOINE_GL_GLFW_BASE_H
2#define TATOOINE_GL_GLFW_BASE_H
3//==============================================================================
5//==============================================================================
6namespace tatooine::gl::glfw {
7//==============================================================================
8struct base {
9 protected:
10 GLFWwindow* m_glfw_window;
11
12 public:
15 //----------------------------------------------------------------------------
16 auto get() -> GLFWwindow*;
17 auto get() const -> GLFWwindow const*;
18 //----------------------------------------------------------------------------
19 auto make_current() -> void;
20 static auto release() -> void;
21 auto get_window_size(int* w, int* h) -> void;
22};
23//==============================================================================
24} // namespace tatooine::gl::glfw
25//==============================================================================
26#endif
Definition: api.h:8
Definition: base.h:8
auto get() -> GLFWwindow *
auto get_window_size(int *w, int *h) -> void
static auto release() -> void
GLFWwindow * m_glfw_window
Definition: base.h:10
auto get() const -> GLFWwindow const *
auto make_current() -> void