Sign in to follow this  
rpg gamer 17

It's set up perfect but it lacks a feature

Recommended Posts

Language: C++ IDE: MSV C++ Using: SDL, SDL image, SDL mixer, SDL ttf I created a 'Surface' Handler. It gathers all the surfaces that needs to be shown and sets them on the screen. The surfaces can be deleted from the list and nothing will get shifted or misplaced. I got this working but I noticed something; I created it without the clipping feature. The surfaces will clip the part that's on the screen and show it but It will not clip sections of the Surface(such as a sprite on a sprite sheet). I don't see how I can have both features. Is there a way to 'clip' a clip? Should I set the section of the image that I need in a new Surface(using get and set pixel)? I really don't want to go back and edit my code. Any motivation on this would be helpful(or painful). Thanks EDIT: I guess it wouldn't really be perfect if it wasn't really perfect. >.< [Edited by - rpg gamer 17 on November 7, 2009 10:17:48 PM]

Share this post


Link to post
Share on other sites
You mean you're doing screen clipping by yourself? SDL does that for you automatically. It might be a good idea to show a little code.

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