set_framebuffer


Description:


public void set_framebuffer (Framebuffer buffer)

This redirects all subsequent drawing to the specified framebuffer.

Note:

The latest drawing apis take explicit Framebuffer arguments so this stack of framebuffers shouldn't be used anymore.

This can either be an offscreen buffer created with Offscreen.to_texture or in the future it may be an onscreen framebuffers too.

Parameters:

buffer

A Framebuffer object, either onscreen or offscreen.


Namespace: Cogl
Package: cogl-1.0