Korge

data class Korge(val args: Array<String> = arrayOf(), val imageFormats: ImageFormat = RegisteredImageFormats, val gameWindow: GameWindow? = null, val mainSceneClass: KClass<out Scene>? = null, val timeProvider: TimeProvider = TimeProvider, val injector: Injector = Injector(), val configInjector: Injector.() -> Unit = {}, val debug: Boolean = false, val trace: Boolean = false, val context: Any? = null, val fullscreen: Boolean? = null, val blocking: Boolean = true, val gameId: String = DEFAULT_GAME_ID, val settingsFolder: String? = null, val batchMaxQuads: Int = BatchBuilder2D.DEFAULT_BATCH_QUADS, val windowSize: Size = DefaultViewport.SIZE, val virtualSize: Size = windowSize, val displayMode: KorgeDisplayMode = KorgeDisplayMode.DEFAULT, val title: String = "Game", val backgroundColor: RGBA? = Colors.BLACK, val quality: GameWindow.Quality = GameWindow.Quality.PERFORMANCE, val icon: String? = null, val multithreaded: Boolean? = null, val forceRenderEveryFrame: Boolean = true, val windowCreationConfig: GameWindowCreationConfig = GameWindowCreationConfig(fullscreen = fullscreen, multithreaded = multithreaded), val main: suspend Stage.() -> Unit = {}, val debugAg: Boolean = false, val debugFontExtraScale: Double = 1.0, val debugFontColor: RGBA = Colors.WHITE, val stageBuilder: (Views) -> Stage = { Stage(it) }, val targetFps: Double = 0.0, val preferSyncIo: Boolean? = null, val unit: Unit = Unit)

Constructors

Link copied to clipboard
constructor(args: Array<String> = arrayOf(), imageFormats: ImageFormat = RegisteredImageFormats, gameWindow: GameWindow? = null, mainSceneClass: KClass<out Scene>? = null, timeProvider: TimeProvider = TimeProvider, injector: Injector = Injector(), configInjector: Injector.() -> Unit = {}, debug: Boolean = false, trace: Boolean = false, context: Any? = null, fullscreen: Boolean? = null, blocking: Boolean = true, gameId: String = DEFAULT_GAME_ID, settingsFolder: String? = null, batchMaxQuads: Int = BatchBuilder2D.DEFAULT_BATCH_QUADS, windowSize: Size = DefaultViewport.SIZE, virtualSize: Size = windowSize, displayMode: KorgeDisplayMode = KorgeDisplayMode.DEFAULT, title: String = "Game", backgroundColor: RGBA? = Colors.BLACK, quality: GameWindow.Quality = GameWindow.Quality.PERFORMANCE, icon: String? = null, multithreaded: Boolean? = null, forceRenderEveryFrame: Boolean = true, windowCreationConfig: GameWindowCreationConfig = GameWindowCreationConfig(fullscreen = fullscreen, multithreaded = multithreaded), main: suspend Stage.() -> Unit = {}, debugAg: Boolean = false, debugFontExtraScale: Double = 1.0, debugFontColor: RGBA = Colors.WHITE, stageBuilder: (Views) -> Stage = { Stage(it) }, targetFps: Double = 0.0, preferSyncIo: Boolean? = null, unit: Unit = Unit)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val blocking: Boolean = true
Link copied to clipboard
Link copied to clipboard
val context: Any? = null
Link copied to clipboard
val debug: Boolean = false
Link copied to clipboard
val debugAg: Boolean = false
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val fullscreen: Boolean? = null
Link copied to clipboard
Link copied to clipboard
val gameWindow: GameWindow? = null
Link copied to clipboard
val icon: String? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val main: suspend Stage.() -> Unit
Link copied to clipboard
val mainSceneClass: KClass<out Scene>? = null
Link copied to clipboard
val multithreaded: Boolean? = null
Link copied to clipboard
val preferSyncIo: Boolean? = null
Link copied to clipboard
Link copied to clipboard
val settingsFolder: String? = null
Link copied to clipboard
Link copied to clipboard
val targetFps: Double = 0.0
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val trace: Boolean = false
Link copied to clipboard
val unit: Unit
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun Korge.glCanvas(block: suspend Stage.() -> Unit): GLCanvasWithKorge
Link copied to clipboard
suspend fun KorgeConfig.headless(ag: AG = AGDummy(this.windowSize), devicePixelRatio: Double = 1.0, draw: Boolean = false, entry: suspend Stage.() -> Unit): KorgeHeadless.HeadlessGameWindow
Link copied to clipboard
suspend fun start(entry: suspend Stage.() -> Unit = this.main)