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 7, Windows Vista, Windows XP

Community Additions

ADD
Show: