diff options
author | Neil Roberts <neil@linux.intel.com> | 2012-11-09 14:50:59 +0000 |
---|---|---|
committer | Neil Roberts <neil@linux.intel.com> | 2012-11-21 19:00:46 +0000 |
commit | 94b13b1abddfd8beef869433906661669634780e (patch) | |
tree | 1cb92c3ed7a8157c6faefad0c46b57d2ea49a23a /cogl/cogl-pipeline-layer-state.h | |
parent | f5fb9be70a92f751886a94da0b34e14252ed197e (diff) | |
download | cogl-94b13b1abddfd8beef869433906661669634780e.tar.gz |
Remove the pipeline layer user matrix
The pipeline layer user matrix is not used very often and the way it
is currently implemented comes at a non-trivial cost. Any pipeline
layer that requires the big state needs to have a CoglMatrix added to
its state. The generated vertex shader will always multiply the
coordinates by the matrix even if it is just the identity matrix.
The same functionality can be achieved on programmable hardware using
a shader snippet. The snippet hook for the texture coordinate
transform is still available to make this convenient.
If we later decide that this is a really useful feature for fixed
function hardware then we can add it back in and try to make it work
more efficiently. In the meantime however it seems like a good idea to
get rid of the API now before Cogl 2.0 is released and the API becomes
fixed.
Reviewed-by: Robert Bragg <robert@linux.intel.com>
Diffstat (limited to 'cogl/cogl-pipeline-layer-state.h')
-rw-r--r-- | cogl/cogl-pipeline-layer-state.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/cogl/cogl-pipeline-layer-state.h b/cogl/cogl-pipeline-layer-state.h index a785411c..9380ddfd 100644 --- a/cogl/cogl-pipeline-layer-state.h +++ b/cogl/cogl-pipeline-layer-state.h @@ -318,23 +318,6 @@ cogl_pipeline_set_layer_combine_constant (CoglPipeline *pipeline, const CoglColor *constant); /** - * cogl_pipeline_set_layer_matrix: - * @pipeline: A #CoglPipeline object - * @layer_index: the index for the layer inside @pipeline - * @matrix: the transformation matrix for the layer - * - * This function lets you set a matrix that can be used to e.g. translate - * and rotate a single layer of a pipeline used to fill your geometry. - * - * Since: 1.10 - * Stability: unstable - */ -void -cogl_pipeline_set_layer_matrix (CoglPipeline *pipeline, - int layer_index, - const CoglMatrix *matrix); - -/** * cogl_pipeline_get_n_layers: * @pipeline: A #CoglPipeline object * |