32#include <GLFW/glfw3.h>
78 static void init(
int SCR_WIDTH,
int SCR_HEIGHT,
79 bool is_mouse_captured =
false,
80 const char *title =
"OpenGL",
bool msaa =
false,
171 static void set_context_version(
int major,
int minor);
172 static void use_core_profile();
173 static void set_hints_apple();
174 static void create_window(
int SCR_WIDTH,
int SCR_HEIGHT,
const char *title);
175 static void make_context_current();
176 static void framebuffer_size_callback(GLFWwindow *
window,
int width,
static int WIDTH
Width of the window.
static void poll_events()
Poll all pending events.
static void set_key_callback(GLFWkeyfun callback)
Set the key callback.
static GLFWwindow * get_window()
Get the window.
static void terminate()
Terminate the window.
static void set_close()
Set the window close flag.
static GLFWglproc get_proc_address()
Get the OpenGL function pointer.
static void init(int SCR_WIDTH, int SCR_HEIGHT, bool is_mouse_captured=false, const char *title="OpenGL", bool msaa=false, bool vsync=false)
Initialize the window.
static void set_mouse_capture(bool is_captured)
Set the mouse capture.
static void set_mouse_pos_callback(GLFWcursorposfun callback)
Set the mouse position callback.
static int get_width()
Get the width of the window.
static GLFWwindow * window
Pointer to the window.
static void set_mouse_callback(GLFWcursorposfun callback)
Set the mouse callback.
static int HEIGHT
Height of the window.
static void set_size_callback(GLFWframebuffersizefun callback)
Set the key callback.
static float get_time()
Get the time.
static bool is_window_closed()
Check if the window is closed.
static bool is_key_pressed(int key)
Check if a key is pressed.
static int get_height()
Get the height of the window.
static void swap_buffers()
Swap the front and back buffers.