Sign in to follow this  
someone2

Are there image masks in SDL?

Recommended Posts

someone2    116
Hi, Is there a way to set an image mask in SDL, such that nothing can be drawn outside the mask? It looks like rectangular clipping is not enough for what I am trying to draw. Thank you very much in advance.

Share this post


Link to post
Share on other sites
someone2    116
Thanks :)
Unfortunately this doesn't work, because I need to set a mask tile, and then draw both the tile and all the entities standing on this tile. I can't see how I'd do this with color keying

Any suggestions would be very welcome. Thank you :)

Share this post


Link to post
Share on other sites
DeadXorAlive    535
Quote:
Original post by someone2
Thanks :)
Unfortunately this doesn't work, because I need to set a mask tile, and then draw both the tile and all the entities standing on this tile. I can't see how I'd do this with color keying

Any suggestions would be very welcome. Thank you :)


Maybe I misunderstand what you said, but you can just first draw the tile and then draw the enitities standing on the tile with colorkey. Or is that not what you meant?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this