[cairo] Per Vertex Color Emulation

Øyvind Kolås pippin at gimp.org
Fri Aug 29 13:59:32 PDT 2008


On Fri, Aug 29, 2008 at 7:45 PM, Aron Rubin <aron.rubin at lmco.com> wrote:
> Travis Griggs wrote:
>> On Aug 29, 2008, at 7:28 AM, Aron Rubin wrote:
>>
>>> I have a OpenGL heat map overlay that I need to also render using
>>> cairo. Is
>>> there a good way to emulate per vertex color?
>
* snip *
> I was just thinking maybe I could set the source to a 2x2 pixel surface warped
> to fit each quad. That sounds painfully slow though.

If what you have is a 2D grid of samples it sounds like you would be
better off creating a raster image that you scale up with linear or
perhaps even better cubic interpolation.

/Øyvind K.
-- 
«The future is already here. It's just not very evenly distributed»
 -- William Gibson
http://pippin.gimp.org/ http://ffii.org/


More information about the cairo mailing list