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:
parent
5a5f57d533
commit
edae2fff72
@ -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);
|
|
||||||
}
|
|
||||||
|
@ -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__ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user