clip_stack_save


Description:


public void clip_stack_save ()

Save the entire state of the clipping stack and then clear all clipping.

Note:

This was originally added to allow us to save the clip stack when switching to an offscreen framebuffer, but it's not necessary anymore given that framebuffers now own separate clip stacks which will be automatically switched between when a new buffer is set.

Calling this function has no effect

The previous state can be returned to with clip_stack_restore. Each call to clip_push after this must be matched by a call to clip_pop before calling clip_stack_restore.


Namespace: Cogl
Package: cogl-1.0