Sign in to follow this  

Are there image masks in SDL?

This topic is 4278 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
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
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

This topic is 4278 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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