SceneGraph

fun <InputType> SceneGraph(context: Context, viewport: Viewport = ScreenViewport( context.graphics.width, context.graphics.height ), batch: Batch? = null, uiInputSignals: SceneGraph.UiInputSignals<InputType> = UiInputSignals(), controller: InputMapController<InputType> = createDefaultSceneGraphController( context.input, uiInputSignals ), whitePixel: TextureSlice = Textures.white)

Parameters

context

the current context

viewport

the viewport that the camera of the scene graph will own

batch

an option sprite batch. If omitted, the scene graph will create and manage its own.

uiInputSignals

the input signals mapped to the UI input of type InputType.

controller

the input map controller for the scene graph

whitePixel

a white 1x1 pixel TextureSlice that is used for rendering with ShapeRenderer.