Are there image masks in SDL

Hi,
I am working on an isometric engine. I need to use image masks when drawing the tiles to avoid overlapping artifacts when drawing objects. It seems that rectangle clipping is not sufficient.

Is there a way to set an image mask, so that nothing can be drawn outside the mask, This seems to be the only solution for drawing the tiles and objects on them!

Thank you very much in advance---------------------------------
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.

Hi Mohamed,

I assume your tiles look somewhat like a caro, like this:
/
/

I would recommend to fill the area around your tiles with a
"special/transperent" color and use colorkey on this.
Just like you would program a sprite.

Usually isometric games just do this and then draw the tiles in the
right order e.g. from top-left (behind) to down-right (front)

I hope this helps

Cheers
Gunnar

Mohamed El Dawy wrote:> Hi,

I am working on an isometric engine. I need to use image masks when
drawing the tiles to avoid overlapping artifacts when drawing objects.
It seems that rectangle clipping is not sufficient.

Is there a way to set an image mask, so that nothing can be drawn
outside the mask, This seems to be the only solution for drawing the
tiles and objects on them!

Thank you very much in advance


Yahoo! Messenger with Voice.
<http://us.rd.yahoo.com/mail_us/taglines/postman3/*http://us.rd.yahoo.com/evt=39666/*http://beta.messenger.yahoo.com

PC-to-Phone calls for ridiculously low rates.



SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl