Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The GraphicsDevice the DrawableGameComponent is associated with.
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework.Game (in microsoft.xna.framework.game.dll)
Syntax
public GraphicsDevice GraphicsDevice { get; }
Property Value
GraphicsDevice the DrawableGameComponent is associated with.
Exceptions
Exception type | Condition |
---|---|
InvalidOperationException | The GraphicsDevice property cannot be used before Initialize has been called. |
See Also
Reference
DrawableGameComponent Class
DrawableGameComponent Members
Microsoft.Xna.Framework Namespace
Platforms
Xbox 360, Windows 7, Windows Vista, Windows XP