Jump to content
  • Advertisement
Sign in to follow this  
Kryptus

Managed DirectX Problem

This topic is 4914 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've just started learning Managed DirectX 9 for C# 2005 Beta 2 and I'm working through a tutorial which says that the Manager class has an Adapters property but it doesn't show up. Manager D3DRoot; PresentParameters d3dPP = new PresentParameters(); // This is the line I want to implement but can't d3dPP.BackBufferFormat = D3DRoot.Adapters(0).CurrentDisplayMode.Format; The adapters isn't even in the list. Why is that?

Share this post


Link to post
Share on other sites
Advertisement
Microsoft.DirectX.Direct3D.Manager

is a static property

use:

Manager D3DRoot;
PresentParameters d3dPP = new PresentParameters();

// This is the line I want to implement but can't
d3dPP.BackBufferFormat = Manager.Adapters[ 0 ].CurrentDisplayMode.Format;

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!