open

fun open(width: Int, height: Int, title: String = "Raylib Window", loop: Window.() -> Unit? = null, targetFps: Int? = null)

Initializes the window with the specified width, height, and title.

Parameters

width

The width of the window.

height

The height of the window.

title

The title of the window.

loop

Optional lifecycle loop (see lifecycle)

targetFps

The target FPS to set for the game (defaults to 60 when loop is provided)