Package-level declarations

Types

Link copied to clipboard
open class SceneGraph<InputType>(val context: Context, viewport: Viewport = ScreenViewport( context.graphics.width, context.graphics.height ), batch: Batch? = null, val uiInputSignals: SceneGraph.UiInputSignals<InputType> = UiInputSignals(), val controller: InputMapController<InputType> = createDefaultSceneGraphController( context.input, uiInputSignals ), whitePixel: TextureSlice = Textures.white) : InputMapProcessor<InputType> , Disposable

A class for creating a scene graph of nodes.

Functions

Link copied to clipboard
inline fun sceneGraph(context: Context, viewport: Viewport = ScreenViewport( context.graphics.width, context.graphics.height ), batch: Batch? = null, controller: InputMapController<String>? = null, whitePixel: TextureSlice = Textures.white, callback: SceneGraph<String>.() -> Unit = {}): SceneGraph<String>
inline fun <InputSignal> sceneGraph(context: Context, viewport: Viewport = ScreenViewport( context.graphics.width, context.graphics.height ), batch: Batch? = null, uiInputSignals: SceneGraph.UiInputSignals<InputSignal> = SceneGraph.UiInputSignals(), controller: InputMapController<InputSignal> = InputMapController(context.input), whitePixel: TextureSlice = Textures.white, callback: SceneGraph<InputSignal>.() -> Unit = {}): SceneGraph<InputSignal>

Create a new scene graph with a callback with the SceneGraph in context.