Force a game to run in windowed mode
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]
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.
You would want to probably hook CreateDevice() and Reset(), and modify their presentation parameters to ensure that windowed mode is selected.
d3d9 is a way too different than d3d8...can someone help me to convert the d3d9's code to d3d8... ?
thanks.
thanks.
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).
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).
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement