This topic has not yet been rated - Rate this topic

Game.GraphicsDevice Property

Gets the current GraphicsDevice.

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

public GraphicsDevice GraphicsDevice { get; }

Property Value

The current GraphicsDevice.
Exception type Condition
InvalidOperationException This property requires a graphics device service in the game service container.

Do not access this property until LoadContent is called.

Xbox 360, Windows 7, Windows Vista, Windows XP
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ