Fireset
Loading...
Searching...
No Matches
window.h
1// Copyright (c) 2025-2026 Henrique Rodrigues Santos
2// Licensed under the MIT License
3// Github: https://github.com/saintsHr/Fireset
4
5#pragma once
6
7#include <GLFW/glfw3.h>
8#include <stdbool.h>
9
10#include "fireset/vector.h"
11
17
23typedef struct{
24 GLFWwindow* handle;
25 int width;
26 int height;
27 const char* name;
28} FsWindow;
29
40FsWindow fsWindowCreate(const char* name, FsVec2 size, bool fullscreen);
41
49void fsWindowHandle(FsWindow* window);
50
58void fsWindowDestroy(FsWindow* window);
59
68bool fsWindowShouldClose(FsWindow* window);
69
82
void fsWindowHandle(FsWindow *window)
Updates a window.
Definition window.c:101
bool fsWindowShouldClose(FsWindow *window)
Checks if a window should close.
Definition window.c:112
void fsWindowDestroy(FsWindow *window)
Destroys a window.
Definition window.c:108
FsVec2 fsMonitorGetSize()
Returns the primary monitor resolution.
Definition window.c:19
FsWindow fsWindowCreate(const char *name, FsVec2 size, bool fullscreen)
Creates a window.
Definition window.c:28
2D vector.
Definition vector.h:18
Window object.
Definition window.h:23
GLFWwindow * handle
Definition window.h:24
int height
Definition window.h:26
int width
Definition window.h:25
const char * name
Definition window.h:27