Sign in to follow this  


Recommended Posts

I have this code:
Format bbFormat = Format.A8B8G8R8;

direct3D.EnumerateAdapterModes ( 0, bbFormat, 0 );

I was wondering, what does the third parameter (modeIndex) mean exactly? I am a bit confused by the documentation on the slimDX site. Also, how do I specify that I want DirectX to use the default adapter on the system?

Share this post

Link to post
Share on other sites
I don't think we have a constant for it but 0 is always the default adapter. The explanation of the ModeIndex parameter is on this page:
[in] Represents the display-mode index which is an unsigned integer between zero and the value returned by IDirect3D9::GetAdapterModeCount minus one.

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