Skip to content

A few more functions

ScriptCodex13 edited this page Dec 19, 2025 · 2 revisions

A few more functions

Here is a list of functions the window class provides to play around with.

Apearance

The default window Icon looks boring and unprofessional, so let's change that.

window.SetIcon(/*Path to your Icon here*/);

If you want your title changed later on, you can use the SetTitle function:

window.SetTitle("New Title");

You can also maximize and minimize the window:

window.Maximize();
window.Minimize();

For setting it to fullscreen you type

window.SetFullscreen(true); // true = enable, false = disable

If you want to provide a custom GLFWmonitor you can specify it in the second parameter.

Window size and position

To set the window size you can call

window.SetSize(600, 600);

You can also change its position on the screen:

window.SetPosition(200, 200); // In pixels

Mouse functions

window.HideCursor(true) // Hide or unhide the cursor in the window
window.SetCursorinCameraMode

Clone this wiki locally