Jump to content
  • Advertisement
Sign in to follow this  
billou

Force a game to run in windowed mode

This topic is 4305 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 all has someone here got a sample to force a game running in dx8 fullscreen to windowed mode ? thanks for any help. [Edited by - billou on September 30, 2006 10:33:42 AM]

Share this post


Link to post
Share on other sites
Advertisement
You could try hooking into the D3D8 API, much in the same way that Muhammad Haggag did in his Hooking D3D9 sample.

You would want to probably hook CreateDevice() and Reset(), and modify their presentation parameters to ensure that windowed mode is selected.

Share this post


Link to post
Share on other sites
d3d9 is a way too different than d3d8...can someone help me to convert the d3d9's code to d3d8... ?

thanks.

Share this post


Link to post
Share on other sites
Yes, the language kind of makes a difference.

C++ the SDK has examples.

VB6 (very few examples in MS docs and online) I had alot of trouble -- you have to put the DirectX object in a seperate form that you can hide/show and destroy/create the DirectX objects each time you transition (I tried various other ways that didnt work).

Share this post


Link to post
Share on other sites
Quote:
Original post by billou
d3d9 is a way too different than d3d8...can someone help me to convert the d3d9's code to d3d8... ?

thanks.

All you have to do is follow along with what that sample does. Just created your own version of IDirect3DDevice8 by inheriting from it and making pass-through functions for each corresponding native call. It's a lot of boring work (since IDirect3DDevice8 has a lot of members), but it is very straighfoward.

Share this post


Link to post
Share on other sites
Sign in to follow this  

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