On Mon, 2008-08-25 at 16:30 +0200, Arnaud VALLAT wrote:

> I would like to make a gradient but not only on a quad ... I would
> like to be able to assign a color to each point of a polygon for
> example.

You can do this with cogl_texture_polygon although it's a less than
ideal solution (but it is probably still faster than using Cairo). You
need to create a completely white texture (it can be any size) and draw
it with cogl_texture_polygon, specifying the colours for each vertex.
The colours will be blended with the colours from the texture, but as
the texture is completely white you will just get the colours from the
vertices.

- Neil

-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to