32#include <GLFW/glfw3.h>
78 static void Init(
int SCR_WIDTH,
int SCR_HEIGHT,
79 bool isMouseCaptured =
false,
const char *title =
"OpenGL",
80 bool msaa =
false,
bool vsync =
false);
170 static void SetContextVersion(
int major,
int minor);
171 static void UseCoreProfile();
172 static void SetHintsApple();
173 static void CreateWindow(
int SCR_WIDTH,
int SCR_HEIGHT,
const char *title);
174 static void MakeContextCurrent();
175 static void Framebuffer_size_callback(GLFWwindow *
window,
int width,
static void SetClose()
Set the window close flag.
static int GetHeight()
Get the height of the window.
static GLFWglproc GetProcAddress()
Get the OpenGL function pointer.
static void SetMouseCapture(bool isCaptured)
Set the mouse capture.
static int HEIGHT
Height of the window.
static void SetMousePosCallback(GLFWcursorposfun callback)
Set the mouse position callback.
static void SetMouseCallback(GLFWcursorposfun callback)
Set the mouse callback.
static int GetWidth()
Get the width of the window.
static bool isWindowClosed()
Check if the window is closed.
static void PollEvents()
Poll all pending events.
static GLFWwindow * GetWindow()
Get the window.
static GLFWwindow * window
Pointer to the window.
static float GetTime()
Get the time.
static void SetSizeCallback(GLFWframebuffersizefun callback)
Set the key callback.
static void Init(int SCR_WIDTH, int SCR_HEIGHT, bool isMouseCaptured=false, const char *title="OpenGL", bool msaa=false, bool vsync=false)
Initialize the window.
static void Terminate()
Terminate the window.
static bool isKeyPressed(int key)
Check if a key is pressed.
static void SetKeyCallback(GLFWkeyfun callback)
Set the key callback.
static void SwapBuffers()
Swap the front and back buffers.
static int WIDTH
Width of the window.