[E-devel] non rectangular clipping regions with imlib2

2003-01-25 Thread vze2mwj7
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?
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.

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



Re: [E-devel] non rectangular clipping regions with imlib2

2003-01-25 Thread The Rasterman
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 899Home 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



[E-devel] thick lines with imlib2

2003-01-25 Thread Jim Crafton
Is there any way to draw thick lines with imlib2?
If not is the solution to just draw a polygon that is filled ? If this 
is the preffered solution any good code lying around to correctly 
approximate the polyline points given x1,y1,x2,y2 and a line thickness?

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