isolated

fun OrbitalCamera.isolated(drawer: Drawer, function: Drawer.() -> Unit)(source)

Temporarily enables this camera, calls function to draw using that camera, then disables it by popping the last matrix changes. It makes it easy to combine perspective and orthographic projections in the same program.

Parameters

function

the function that is called in the isolation