Fireset
Loading...
Searching...
No Matches
Window

Window management functions and types. More...

Classes

struct  FsWindow
 Window object. More...

Functions

FsWindow fsWindowCreate (const char *name, FsVec2 size, bool fullscreen)
 Creates a window.
void fsWindowHandle (FsWindow *window)
 Updates a window.
void fsWindowDestroy (FsWindow *window)
 Destroys a window.
bool fsWindowShouldClose (FsWindow *window)
 Checks if a window should close.
FsVec2 fsMonitorGetSize ()
 Returns the primary monitor resolution.

Detailed Description

Window management functions and types.

Function Documentation

◆ fsMonitorGetSize()

FsVec2 fsMonitorGetSize ( )

Returns the primary monitor resolution.

Retrieves the width and height, in pixels, of the primary monitor currently in use.

Returns
FsVec2 containing the monitor width (x) and height (y) in pixels.
Note
Requires GLFW to be initialized.

◆ fsWindowCreate()

FsWindow fsWindowCreate ( const char * name,
FsVec2 size,
bool fullscreen )

Creates a window.

Initializes a window using the provided data.

Parameters
nameThe name/title of the generated window.
sizeThe Vec2 size of the window.
fullscreenIf window is or not Fullscreen
Returns
Pointer to the created window.

◆ fsWindowDestroy()

void fsWindowDestroy ( FsWindow * window)

Destroys a window.

Closes the window and releases its resources.

Parameters
windowWindow to destroy.

◆ fsWindowHandle()

void fsWindowHandle ( FsWindow * window)

Updates a window.

Processes events and updates the internal state of the window.

Parameters
windowWindow to update.

◆ fsWindowShouldClose()

bool fsWindowShouldClose ( FsWindow * window)

Checks if a window should close.

Queries the window to determine if a close request has been issued.

Parameters
windowWindow to check.
Returns
true if the window should close, false otherwise.