mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 13:24:09 +00:00
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>
This commit is contained in:
parent
8285091585
commit
29c62fabac
@ -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);
|
||||
}
|
||||
|
@ -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__ */
|
||||
|
@ -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))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user