On Sat, 25 Jan 2003 11:17:51 -0600 <[EMAIL PROTECTED]> babbled:

> is is possible to create a non rectangualr clipping region?
> I see the 
> void imlib_context_set_cliprect(int x, int y, int w, int h);
> but nothing else.
> Am i missing something?

imlib2 only support rectangular cliprects - yes. :)

> If not, any estimete are to whether or not this will be implementated? If it
> won't be implemented what would it take to implement it? I would be willing to
> do this, time permitting.

well if you want something general you probably want a "multiplier" image to be
able to be used. that is you render to a temporary image the clip you want using
drawing calls. then this image can be used as a "clip image". the resultant
pixel used to blend/copy onto the dest is
srcR * clipR
srcG * clipG
srcB * clipB
srcA * clipA

where the drawing routine computes which clip pixel to use per src pixel it's
using and then does this multiple to ge6 a new rgba value to use for the actual
composite step. how it computes this is up to the routine, but EVERY draw
routine then needs it. imlib isn't a full general rendering lib so it doesn't
have a full pipeline so i never made this just a "drop this in here in the
pipeline, but it could do with it if you ant to expand this far... basically
it'd be a pain in the bum to implement so i don't see myself doing it any time
soon.

> Thanks
> 
> Jim
> 
> 
> 
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> enlightenment-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


-- 
--------------- Codito, ergo sum - "I code, therefore I am" --------------------
The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
                                    [EMAIL PROTECTED]
Mobile Phone: +61 (0)413 451 899    Home Phone: 02 9698 8615


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
enlightenment-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to