It's OK, I'm not asking about birds and bees
Could anyone tell me how to setup the windows size/type and display mode for a fullscreen app with DX8? I''ve figured that I will have to test the default display mode of 800x600 first and if it checks, which it will in 95% of cases, then resize my window to that size as well.
All I''m wondering is what functions and widnow states should I use to do this?
If anyone can offer any info or slightly off topic tips-
Thanks in advance!
~Vendayan
"Never have a battle of wits with an unarmed man. He will surely attempt to disarm you as well"~Vendayan
bah, I have a decent knoledge of DX7 but a bad knowledge of windows API and DX8 which I am just now in the process of learning. And besides this is the for beginners forumn is it not...? Sorry if my post wasnt interesting enough but if you come to GD.net to discourage people rom asking questions then I think you may be an unwelcomed part of the community.
"Never have a battle of wits with an unarmed man. He will surely attempt to disarm you as well"~Vendayan
insiej wasn''t being subtle, but he''s right. This is well-covered in the documentation which you will have if you have the DX8 SDK.
Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions
Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions
You might want to try SetDisplayMode();.
----------
Take it to the Xtreme!
----------
----------
Take it to the Xtreme!
----------
Wachar's Eternity <-<-<-<-<- Me own site!
OK I know how to get the display mode at the current state, but how should I go about resizing everything If the current resolution is set at 800x600 and the player wants to see the game in 1024x768?
Just learning both Windows API and DirectX I am only wondering, how and when I should resize the window to fill the screen (if thats what I need to do) and if there are any special flags I need to set for the window.
Just learning both Windows API and DirectX I am only wondering, how and when I should resize the window to fill the screen (if thats what I need to do) and if there are any special flags I need to set for the window.
"Never have a battle of wits with an unarmed man. He will surely attempt to disarm you as well"~Vendayan
You should call the IDirect3D8::EnumDisplayMode function to get information about all of the available display modes, add them to a list, let the user choose what display mode they want, then when you create your device, specify the mode the user chose.
If you want to change mode during the running of your game, use IDirect3DDevice8::Reset ().
Keep in mind that when you Reset, all of your D3D objects can be lost, as well as the render state. Fix this by keeping a list of created objects in the renderer, then restoring them as necessary, and setting up your render state again on Reset.
Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions
If you want to change mode during the running of your game, use IDirect3DDevice8::Reset ().
Keep in mind that when you Reset, all of your D3D objects can be lost, as well as the render state. Fix this by keeping a list of created objects in the renderer, then restoring them as necessary, and setting up your render state again on Reset.
Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions
but how do I then change the size of the window to fill the new resolution? Or will D3D handle that for me?
~Vendayan
~Vendayan
"Never have a battle of wits with an unarmed man. He will surely attempt to disarm you as well"~Vendayan
For fullscreen D3D apps, the window size doesn''t matter - D3D will handle it.
Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions
Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement