-
Notifications
You must be signed in to change notification settings - Fork 0
A few more functions
ScriptCodex13 edited this page Dec 19, 2025
·
2 revisions
Here is a list of functions the window class provides to play around with.
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 = disableIf you want to provide a custom GLFWmonitor you can specify it in the second parameter.
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 pixelswindow.HideCursor(true) // Hide or unhide the cursor in the windowwindow.SetCursorinCameraMode