Properties

Link copied to clipboard
abstract var application: Application
Link copied to clipboard
abstract var assetMetadata: () -> AssetMetadata
Link copied to clipboard
Link copied to clipboard
abstract var backgroundColor: ColorRGBa?
Link copied to clipboard
Link copied to clipboard
abstract var clock: () -> Double
Link copied to clipboard
abstract val dispatcher: Dispatcher
Link copied to clipboard
abstract var drawer: Drawer
Link copied to clipboard
abstract var driver: Driver
Link copied to clipboard
abstract var ended: Event<ProgramEvent>
Link copied to clipboard
Link copied to clipboard
abstract val frameCount: Int
Link copied to clipboard
abstract var height: Int
Link copied to clipboard
abstract var isNested: Boolean
Link copied to clipboard
abstract val keyboard: KeyEvents
Link copied to clipboard
abstract val mouse: MouseEvents
Link copied to clipboard
abstract var name: String
Link copied to clipboard
abstract val pointers: Pointers
Link copied to clipboard
Link copied to clipboard
abstract val program: Program
Link copied to clipboard
Link copied to clipboard
abstract val seconds: Double
Link copied to clipboard

A map that can be used to store arbitrary data, including functions

Link copied to clipboard
abstract var width: Int
Link copied to clipboard
abstract val window: Window

Functions

Link copied to clipboard
abstract fun draw()
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
abstract fun drawImpl()
Link copied to clipboard
abstract fun <T : Extension> extend(extension: T): T
abstract fun <T : Extension> extend(extension: T, configure: T.() -> Unit): T
abstract fun extend(stage: ExtensionStage = ExtensionStage.BEFORE_DRAW, userDraw: Program.() -> Unit)
Link copied to clipboard
fun Program.launch(context: CoroutineContext = dispatcher, start: CoroutineStart = CoroutineStart.DEFAULT, block: suspend CoroutineScope.() -> Unit): 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: (Face) -> Double = ::fontHeightScaler): FontImageMap
Link copied to clipboard
expect fun Program.namedTimestamp(extension: String = "", path: String? = null): String
actual fun Program.namedTimestamp(extension: String, path: String?): String
actual fun Program.namedTimestamp(extension: String, path: String?): String
Link copied to clipboard
abstract suspend fun setup()
Link copied to clipboard
Link copied to clipboard
fun Program.window(configuration: WindowConfiguration = WindowConfiguration(), init: suspend Program.() -> Unit): ApplicationWindow