[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cairo
Subject:    Re: [cairo] Best strategy for complex screen drawing
From:       Timothée Lecomte <timothee.lecomte () ens ! fr>
Date:       2005-11-26 18:35:16
Message-ID: 4388AAE4.20005 () ens ! fr
[Download RAW message or body]

MenTaLguY wrote:

>On Sat, 2005-11-26 at 14:52 +0100, Timothée Lecomte wrote:
>  
>
>>It gives no seam, and it is much quicker (400 ms to draw the 10000
>>polygons on a generic image surface, instead of 1500 ms).
>>Unfortunately, there are some unwanted side effects, because I have to
>>draw polygons over already existing polygons, and with
>>CAIRO_OPERATOR_ADD this leads to some transparency effects. Here is a
>>screenshot :
>>
>>http://tipote.free.fr/wxt16.png
>>    
>>
>
>Maybe you want to use SATURATE rather than ADD?
>
>-mental
>  
>
By looking at http://cairographics.org/samples/operator_saturate.html ,
I would say yes, but when I choose it instead of add in my code, I don't
get the desired output :

http://tipote.free.fr/wxt17.png

As you can see, this time polygons which should overwrite previous ones
(like with CAIRO_OPERATOR_OVER) simply don't appear.

Timothée Lecomte

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic