WindowProgram
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
background color that is used to clear the background every frame
Link copied to clipboard
Represents the clipboard functionality for the application.
Link copied to clipboard
Link copied to clipboard
list of installed extensions
Link copied to clipboard
Link copied to clipboard
An event triggered when assets need to be produced or generated.
Link copied to clipboard
An event triggered when there is a request for assets to be accessed or provided.
Link copied to clipboard
A map that can be used to store arbitrary data, including functions
Link copied to clipboard
Functions
Link copied to clipboard
fun Program.drawImage(width: Int, height: Int, contentScale: Double? = null, format: ColorFormat = ColorFormat.RGBa, type: ColorType = defaultColorType(format), multisample: BufferMultisample? = null, drawFunction: Drawer.() -> Unit): ColorBuffer
Create an image ColorBuffer by drawing it
Link copied to clipboard
install an Extension
install an Extension and configure it
install an extension function for the given ExtensionStage
Link copied to clipboard
fun Program.launch(context: ERROR CLASS: Symbol not found for CoroutineContext = dispatcher, start: ERROR CLASS: Symbol not found for CoroutineStart = CoroutineStart.DEFAULT, block: suspend ERROR CLASS: Symbol not found for CoroutineScope.() -> Unit): ERROR CLASS: Symbol not found for Job
launch a coroutine in the Program context
Link copied to clipboard
fun Program.loadFont(fileOrUrl: String, size: Double, characterSet: Set<Char> = defaultFontmapCharacterSet, contentScale: Double = this.drawer.context.contentScale, fontScaler: (ERROR CLASS: Symbol not found for Face) -> Double = ::fontHeightScaler): ERROR CLASS: Symbol not found for FontImageMap
Load a FontImageMap
Link copied to clipboard
Generates a timestamped name for the program, optionally including a file extension and path.
Link copied to clipboard
Link copied to clipboard
fun Program.window(configuration: WindowConfiguration = WindowConfiguration(), init: suspend Program.() -> Unit): ApplicationWindow