Sign in to follow this  
emforce

fullscreen

Recommended Posts

i still haven't figured it out

right now i have the DXGI_SWAP_CHAIN_DESC function in my code and that decides whether the application is fullscreen or not but i was wondering how i could make it so that sd.Windowed equals a bool value?

if i can get it to equal a bool value then it will just be a case of inputing a certain key to toggle it on and off :D

Share this post


Link to post
Share on other sites
Call SetFullscreenState to switch to fullscreen. Call GetFullscreenState to check if you're in fullscreen.
DXGI_SWAP_CHAIN_DESC.Windowed is a BOOL value, it is only used when you create your swap chain, not when you change between fullscreen and not fullscreen on an already existing swap chain. You should always create your swap chain with Windowed set to TRUE, and then change to fullscreen with SetFullscreenState, as stated in the remarks in the documentation for IDXGIFactory::CreateSwapChain.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this