Skip to main content
GameDev.net gamedev.net
🔒 Locked

Another Direct Draw Question

Started by Jouei Jul 3, 2007 at 7:21 PM 2 replies 650+ views
Original Post
Jouei
Jouei
Yes there are a couple today :p Needless to say i am trying to design a game engine. Ok so heres the question For example im just updating soem direct Draw code i made and im testing it i have an image the follows the cursor on the screen but when you get to going slight off the screen with the image it dissapers. How would one go about making it so even if the image is off the screen partly it will still show whatever is still on the screen. -.^ i have double buffering setup and some basic i will post code if needed. Regards Joeui.
Prototype
Prototype
You must create a DirectDrawClipper and attach it to the surface you're blitting to (usuallly the backbuffer), or do the clipping yourself if you're using BltFast. There's not much to it, you should be able to set it up easily from the docs.

Seems DirectDraw is regaining popularity lately :)
Jouei
Jouei
^_^ lol i have a clipper hmm must not have the reight settings well i will play around with it im sure i can get it to work.

Personaly i love Direct Draw lol.

Regards Jouei.
Jouei
Jouei
Would one need to a clipper for bolth the primary and back buffer ?
if so lol i tryed to set the clipper to the BackBuffer since i apperntly had it attached to the primary and no image is dissplayed is there a caps i need to have on for the clipper

Regards Jouei.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.