Export (0) Print
Expand All

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:
© 2014 Microsoft