Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Clipping in Windowed Mode

This topic is 6192 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

Hey. I''ve been trying out some things with fullscreen and windowed mode. * Fullscreen mode: Full screen is easy When running in this mode, you do not need a clipper, but you can create one and attach it to a back buffer if you want your images "disappearing" the minute they go past any edge on your screen. * Windowed mode: A clipper is needed to keep DD from drawing all over your screen. You attach it to your primary surface. However, this does not solve the "disappearing" of images when they come into contact with window''s edge. I attached the clipper to the primary and back surfaces, but then a portion of the left and top sides of the window get filled with garbage. I suppose you can manually compute how far an image would be off the screen and use only the visible portion by putting those dimensions in a RECT when blitting. I just thought a clipper on the back surface in windowed mode would do that. If someone knows a better way, please let me know. Thanx

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!