set_depth_texture_enabled


Description:

public void set_depth_texture_enabled (Bool enabled)

If enabled is TRUE, the depth buffer used when rendering to this is available as a texture.

You can retrieve the texture with get_depth_texture.

<note>It's possible that your GPU does not support depth textures. You should check the cogl_feature_id_depth_texture feature before using this function.</note> <note>It's not valid to call this function after the framebuffer has been allocated as the creation of the depth texture is done at allocation time. </note>

Parameters:

this

A Framebuffer

enabled

TRUE or FALSE