$darkmode
#include "window.h"#include "gl_debug.h"#include "glad/glad.h"#include "log.h"#include "render_utils.h"#include <GLFW/glfw3.h>#include <stdio.h>Functions | |
| GLFWwindow * | window_create (int width, int height, const char *title, int samples) |
| void | window_destroy (GLFWwindow *window) |
| GLFWwindow* window_create | ( | int | width, |
| int | height, | ||
| const char * | title, | ||
| int | samples | ||
| ) |
Creates a GLFW window with an OpenGL context initialized. Handles GLFW initialization, Window creation, and GLAD loading.
| width | Window width |
| height | Window height |
| title | Window title |
| samples | MSAA samples (0 or 1 to disable) |
| void window_destroy | ( | GLFWwindow * | window | ) |
Destroys the window and terminates GLFW.
| window | The window to destroy. |