[cairo] Per Vertex Color Emulation
aron.rubin at lmco.com
Tue Sep 2 10:06:15 PDT 2008
Øyvind Kolås wrote:
> 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.
The grid is radial so I cannot actually do that. You have the right idea
More information about the cairo