Skip to main content
GameDev.net gamedev.net
🔒 Locked

[SlimDX]EnumerateAdapterModes

Started by jdub Nov 22, 2008 at 1:39 AM 0 replies 1.2k views
Original Post
jdub
jdub
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?
J.W.
Promit
Promit
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:
Quote:
Mode
[in] Represents the display-mode index which is an unsigned integer between zero and the value returned by IDirect3D9::GetAdapterModeCount minus one.
SlimDX | Ventspace Blog | Twitter | Diverse teams make better games. I am currently hiring capable C++ engine developers in Baltimore, MD.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.