mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
cogl: Remove cogl_material_set_color
This is unused anywhere. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2058>
This commit is contained in:
parent
edae2fff72
commit
6cd4489e55
@ -47,10 +47,3 @@ cogl_material_new (void)
|
|||||||
return COGL_MATERIAL (cogl_pipeline_new (ctx));
|
return COGL_MATERIAL (cogl_pipeline_new (ctx));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
cogl_material_set_color (CoglMaterial *material,
|
|
||||||
const CoglColor *color)
|
|
||||||
{
|
|
||||||
cogl_pipeline_set_color (COGL_PIPELINE (material), color);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
@ -115,28 +115,6 @@ COGL_DEPRECATED_FOR (cogl_pipeline_new)
|
|||||||
COGL_EXPORT CoglMaterial *
|
COGL_EXPORT CoglMaterial *
|
||||||
cogl_material_new (void);
|
cogl_material_new (void);
|
||||||
|
|
||||||
/**
|
|
||||||
* cogl_material_set_color:
|
|
||||||
* @material: A #CoglMaterial object
|
|
||||||
* @color: The components of the color
|
|
||||||
*
|
|
||||||
* Sets the basic color of the material, used when no lighting is enabled.
|
|
||||||
*
|
|
||||||
* Note that if you don't add any layers to the material then the color
|
|
||||||
* will be blended unmodified with the destination; the default blend
|
|
||||||
* expects premultiplied colors: for example, use (0.5, 0.0, 0.0, 0.5) for
|
|
||||||
* semi-transparent red. See cogl_color_premultiply().
|
|
||||||
*
|
|
||||||
* The default value is (1.0, 1.0, 1.0, 1.0)
|
|
||||||
*
|
|
||||||
* Since: 1.0
|
|
||||||
* Deprecated: 1.16: Use cogl_pipeline_set_color() instead
|
|
||||||
*/
|
|
||||||
COGL_DEPRECATED_FOR (cogl_pipeline_set_color)
|
|
||||||
COGL_EXPORT void
|
|
||||||
cogl_material_set_color (CoglMaterial *material,
|
|
||||||
const CoglColor *color);
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __COGL_MATERIAL_H__ */
|
#endif /* __COGL_MATERIAL_H__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user