openrndr / org.openrndr.draw / isolatedWithTarget

isolatedWithTarget

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

Pushes style, view- and projection matrix, sets render target, calls function and pops,

Parameters

function - the function that is called in the isolation