cogl: Remove cogl_material_set_color4ub

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:50:52 +01:00 committed by Marge Bot
parent 5a5f57d533
commit edae2fff72
2 changed files with 0 additions and 33 deletions

View File

@ -54,13 +54,3 @@ cogl_material_set_color (CoglMaterial *material,
cogl_pipeline_set_color (COGL_PIPELINE (material), color); cogl_pipeline_set_color (COGL_PIPELINE (material), color);
} }
void
cogl_material_set_color4ub (CoglMaterial *material,
uint8_t red,
uint8_t green,
uint8_t blue,
uint8_t alpha)
{
cogl_pipeline_set_color4ub (COGL_PIPELINE (material),
red, green, blue, alpha);
}

View File

@ -137,29 +137,6 @@ COGL_EXPORT void
cogl_material_set_color (CoglMaterial *material, cogl_material_set_color (CoglMaterial *material,
const CoglColor *color); const CoglColor *color);
/**
* cogl_material_set_color4ub:
* @material: A #CoglMaterial object
* @red: The red component
* @green: The green component
* @blue: The blue component
* @alpha: The alpha component
*
* Sets the basic color of the material, used when no lighting is enabled.
*
* The default value is (0xff, 0xff, 0xff, 0xff)
*
* Since: 1.0
* Deprecated: 1.16: Use cogl_pipeline_set_color4ub() instead
*/
COGL_DEPRECATED_FOR (cogl_pipeline_set_color4ub)
COGL_EXPORT void
cogl_material_set_color4ub (CoglMaterial *material,
uint8_t red,
uint8_t green,
uint8_t blue,
uint8_t alpha);
G_END_DECLS G_END_DECLS
#endif /* __COGL_MATERIAL_H__ */ #endif /* __COGL_MATERIAL_H__ */