Archived

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

Newbie directx questions

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

is it possible to do page flipping in directx windowed mode? when I try to create a backbuffer with the primary surface it complains about not being in exlcusive mode (which happens to be fullscreen). when I try to create a surface with the the BACKBUFFER caps I get an error complaining about incorrect capabilites flags. If it isn''t possible, how would I go about double buffering on windowed mode?

Share this post


Link to post
Share on other sites
The easy way: Create an offscreen surface serving as a backbuffer and blit it to the primary surface each frame.

The hard way: Overlays CAN (in theory) be used for page-flipping in windowed mode.

/CMN

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Create a offscreen surface the same size as the primary one and draw everything to there (like a backbuffer). Then instead of flipping, just do a blit. Cya L8R!

Share this post


Link to post
Share on other sites