Sign in to follow this  
Kryptus

Managed DirectX Problem

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
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

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