summaryrefslogtreecommitdiff
path: root/examples/cogl-info.c
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2012-05-23 18:19:29 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2012-07-12 17:13:51 +0100
commit5bc56e9f30cdf8cfd62a975c3d20c9463aad76fe (patch)
tree7b2defa496dc92a9957c4070a31cd85c0ad31c57 /examples/cogl-info.c
parentff3707e3c065812960680b80a6bc1963d14b3a94 (diff)
downloadcogl-5bc56e9f30cdf8cfd62a975c3d20c9463aad76fe.tar.gz
Support retrieving depth textures from framebufferswip/depth-texture
This commit introduces two new funtions on framebuffers to be able to retrieve the depth buffer as a texture for further usage, say, to implement shadow mapping. The proposed API works as follow: * Before the framebuffer is allocated, you can request that a depth texture is created with cogl_framebuffer_enable_depth_texture() * cogl_framebuffer_get_depth_texture() can then be used to grab a CoglTexture
Diffstat (limited to 'examples/cogl-info.c')
-rw-r--r--examples/cogl-info.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/cogl-info.c b/examples/cogl-info.c
index b7dab007..7c43fe2c 100644
--- a/examples/cogl-info.c
+++ b/examples/cogl-info.c
@@ -109,6 +109,12 @@ struct {
"GLES2 API integration supported",
"Support for creating a GLES2 context for using the GLES2 API in a "
"way that's integrated with Cogl."
+ },
+ {
+ COGL_FEATURE_ID_DEPTH_TEXTURE,
+ "Depth Textures",
+ "CoglFramebuffers can be configured to render their depth buffer into "
+ "a texture"
}
};