[mutter] cogl: Remove cogl_material_set_layer_point_sprite_coords_enabled



commit 29c62fabac0664f10a1c7b8418f6b98b8517cfb6
Author: Fernando Monteiro <fr02monteiro gmail com>
Date:   Fri Sep 17 08:45:09 2021 +0100

    cogl: Remove cogl_material_set_layer_point_sprite_coords_enabled
    
    This function is deprecated and must be replaced to the alternative.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2058>

 cogl/cogl/deprecated/cogl-material-compat.c        | 13 -----------
 cogl/cogl/deprecated/cogl-material-compat.h        | 26 ----------------------
 .../clutter/interactive/test-cogl-point-sprites.c  |  2 +-
 3 files changed, 1 insertion(+), 40 deletions(-)
---
diff --git a/cogl/cogl/deprecated/cogl-material-compat.c b/cogl/cogl/deprecated/cogl-material-compat.c
index 609c05977d..12babd0a8b 100644
--- a/cogl/cogl/deprecated/cogl-material-compat.c
+++ b/cogl/cogl/deprecated/cogl-material-compat.c
@@ -135,16 +135,3 @@ cogl_material_set_layer_matrix (CoglMaterial            *material,
   cogl_pipeline_set_layer_matrix (COGL_PIPELINE (material),
                                   layer_index, matrix);
 }
-
-gboolean
-cogl_material_set_layer_point_sprite_coords_enabled (CoglMaterial *material,
-                                                     int           layer_index,
-                                                     gboolean      enable,
-                                                     GError      **error)
-{
-  CoglPipeline *pipeline = COGL_PIPELINE (material);
-  return cogl_pipeline_set_layer_point_sprite_coords_enabled (pipeline,
-                                                              layer_index,
-                                                              enable,
-                                                              error);
-}
diff --git a/cogl/cogl/deprecated/cogl-material-compat.h b/cogl/cogl/deprecated/cogl-material-compat.h
index 0a229610f4..720e86acd7 100644
--- a/cogl/cogl/deprecated/cogl-material-compat.h
+++ b/cogl/cogl/deprecated/cogl-material-compat.h
@@ -555,32 +555,6 @@ cogl_material_set_layer_matrix (CoglMaterial            *material,
                                 int                      layer_index,
                                 const graphene_matrix_t *matrix);
 
-/**
- * cogl_material_set_layer_point_sprite_coords_enabled:
- * @material: a #CoglHandle to a material.
- * @layer_index: the layer number to change.
- * @enable: whether to enable point sprite coord generation.
- * @error: A return location for a GError, or NULL to ignore errors.
- *
- * When rendering points, if @enable is %TRUE then the texture
- * coordinates for this layer will be replaced with coordinates that
- * vary from 0.0 to 1.0 across the primitive. The top left of the
- * point will have the coordinates 0.0,0.0 and the bottom right will
- * have 1.0,1.0. If @enable is %FALSE then the coordinates will be
- * fixed for the entire point.
- *
- * Return value: %TRUE if the function succeeds, %FALSE otherwise.
- * Since: 1.4
- * Deprecated: 1.16: Use cogl_pipeline_set_layer_point_sprite_coords_enabled()
- *                  instead
- */
-COGL_DEPRECATED_FOR (cogl_pipeline_set_layer_point_sprite_coords_enabled)
-COGL_EXPORT gboolean
-cogl_material_set_layer_point_sprite_coords_enabled (CoglMaterial *material,
-                                                     int           layer_index,
-                                                     gboolean      enable,
-                                                     GError      **error);
-
 G_END_DECLS
 
 #endif /* __COGL_MATERIAL_H__ */
diff --git a/src/tests/clutter/interactive/test-cogl-point-sprites.c 
b/src/tests/clutter/interactive/test-cogl-point-sprites.c
index 9d60272744..5994df76ea 100644
--- a/src/tests/clutter/interactive/test-cogl-point-sprites.c
+++ b/src/tests/clutter/interactive/test-cogl-point-sprites.c
@@ -232,7 +232,7 @@ test_cogl_point_sprites_main (int argc, char *argv[])
   cogl_material_set_layer (data.material, 0, tex);
   cogl_object_unref (tex);
 
-  if (!cogl_material_set_layer_point_sprite_coords_enabled (data.material,
+  if (!cogl_pipeline_set_layer_point_sprite_coords_enabled (data.material,
                                                             0, TRUE,
                                                             &error))
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]