Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GraphicsDevice Constructor

GraphicsDevice Constructor

Creates an instance of this object.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)

public GraphicsDevice (
         GraphicsAdapter adapter,
         GraphicsProfile graphicsProfile,
         PresentationParameters presentationParameters
)

Parameters

adapter
Type: GraphicsAdapter
The display adapter.
graphicsProfile
Type: GraphicsProfile
The graphics profile.
presentationParameters
Type: PresentationParameters
The presentation options.

Exception typeCondition
NoSuitableGraphicsDeviceException The graphics adapter does not support the requested capabilities.
NotSupportedException Could not find a graphics device that supports the profile.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

ADD
Show:
© 2015 Microsoft