saveRestoreState

open fun saveRestoreState(block: () -> Unit)

If you need to use OpenGL while Glok is rendering a scene, you must perform these actions within a block. This saves the OpenGL state, runs the block, and then restores the state again.