cogl: Remove cogl_pipeline_set_layer

This function is deprecated and must be replaced to the alternative.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2058>
This commit is contained in:
Fernando Monteiro 2021-10-18 22:44:34 +01:00 committed by Marge Bot
parent 68ec76e4ee
commit a14d3d6e17
2 changed files with 0 additions and 35 deletions

View File

@ -95,12 +95,3 @@ cogl_material_set_user_program (CoglMaterial *material,
{
cogl_pipeline_set_user_program (COGL_PIPELINE (material), program);
}
void
cogl_material_set_layer (CoglMaterial *material,
int layer_index,
CoglHandle texture)
{
cogl_pipeline_set_layer_texture (COGL_PIPELINE (material),
layer_index, texture);
}

View File

@ -393,32 +393,6 @@ COGL_EXPORT void
cogl_material_set_user_program (CoglMaterial *material,
CoglHandle program);
/**
* cogl_material_set_layer:
* @material: A #CoglMaterial object
* @layer_index: the index of the layer
* @texture: a #CoglHandle for the layer object
*
* In addition to the standard OpenGL lighting model a Cogl material may have
* one or more layers comprised of textures that can be blended together in
* order, with a number of different texture combine modes. This function
* defines a new texture layer.
*
* The index values of multiple layers do not have to be consecutive; it is
* only their relative order that is important.
*
* <note>In the future, we may define other types of material layers, such
* as purely GLSL based layers.</note>
*
* Since: 1.0
* Deprecated: 1.16: Use cogl_pipeline_set_layer() instead
*/
COGL_DEPRECATED_FOR (cogl_pipeline_set_layer)
COGL_EXPORT void
cogl_material_set_layer (CoglMaterial *material,
int layer_index,
CoglHandle texture);
G_END_DECLS
#endif /* __COGL_MATERIAL_H__ */