diff options
author | Robert Bragg <robert@linux.intel.com> | 2011-04-14 18:12:03 +0100 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2011-05-16 18:36:44 +0100 |
commit | 07c0b9f89ffc64175befb9cf40a07f499169ed67 (patch) | |
tree | def2d2504527a06ca174f29e9e4ee0b8e50418ca /cogl/cogl.h | |
parent | eb109e6cc09e9024ad5303f02e34bc2de00ad8e7 (diff) | |
download | cogl-07c0b9f89ffc64175befb9cf40a07f499169ed67.tar.gz |
Add CoglDepthState API
Instead of simply extending the cogl_pipeline_ namespace to add api for
controlling the depth testing state we now break the api out. This adds
a CoglDepthState type that can be stack allocated. The members of the
structure are private but we have the following API to setup the state:
cogl_depth_state_init
cogl_depth_state_set_test_enabled
cogl_depth_state_get_test_enabled
cogl_depth_state_set_test_function
cogl_depth_state_get_test_function
cogl_depth_state_set_writing_enabled
cogl_depth_state_get_writing_enabled
cogl_depth_state_set_range
cogl_depth_state_get_range
This removes the following experimental API which is now superseded:
cogl_material_set_depth_test_enabled
cogl_material_get_depth_test_enabled
cogl_material_set_depth_test_function
cogl_material_get_depth_test_function
cogl_material_set_depth_writing_enabled
cogl_material_get_depth_writing_enabled
cogl_material_set_depth_range
cogl_material_get_depth_range
Once a CoglDepthState structure is setup it can be set on a pipeline
using cogl_pipeline_set_depth_state().
Diffstat (limited to 'cogl/cogl.h')
-rw-r--r-- | cogl/cogl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cogl/cogl.h b/cogl/cogl.h index 74de6f03..d7dfc071 100644 --- a/cogl/cogl.h +++ b/cogl/cogl.h @@ -85,6 +85,7 @@ typedef struct _CoglFramebuffer CoglFramebuffer; #include <cogl/cogl-indices.h> #include <cogl/cogl-attribute.h> #include <cogl/cogl-primitive.h> +#include <cogl/cogl-depth-state.h> #include <cogl/cogl-pipeline.h> #include <cogl/cogl-framebuffer.h> #ifdef COGL_HAS_XLIB |