Go to the source code of this file.
◆ GLFWwindow
◆ window_create()
| 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.
- Parameters
-
| width | Window width |
| height | Window height |
| title | Window title |
| samples | MSAA samples (0 or 1 to disable) |
- Returns
- Pointer to the created window, or NULL on failure.
◆ window_destroy()
Destroys the window and terminates GLFW.
- Parameters
-
| window | The window to destroy. |