set_source_color
Description:
This is a convenience function for creating a solid fill source material from the given color.
Note:
Latest drawing apis all take an explicit CoglPipeline
argument so this stack of CoglMaterial
s shouldn't be used.
This color will be used for any subsequent drawing operation.
The color will be premultiplied by Cogl, so the color should be non-premultiplied. For example: use (1.0, 0.0, 0.0, 0.5) for semi-transparent red.
See also set_source_color4ub and set_source_color4f if you already have the color components.
Parameters:
color |
a Color |
Namespace: Cogl
Package: cogl-1.0