GraphicsDevice Property
Collapse the table of content
Expand the table of content

DrawableGameComponent.GraphicsDevice Property

The GraphicsDevice the DrawableGameComponent is associated with.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework.Game (in microsoft.xna.framework.game.dll)

public GraphicsDevice GraphicsDevice { get; }

Property Value

GraphicsDevice the DrawableGameComponent is associated with.

Exception typeCondition
InvalidOperationExceptionThe GraphicsDevice property cannot be used before Initialize has been called.

Xbox 360, Windows XP SP2, Windows Vista

Community Additions

ADD
Show:
© 2016 Microsoft