isolatedWithTarget

fun Drawer.isolatedWithTarget(target: RenderTarget, function: Drawer.() -> Unit)(source)

Pushes style and model-view-projection matrices, sets render target, calls function and pops.

Parameters

function

the function that is called in the isolation