ContentReaderExtensions.GetGraphicsDevice Method (Microsoft.Xna.Framework.Content)
Gets the GraphicsDevice from the ContentManager.ServiceProvider.
Namespace: Microsoft.Xna.Framework.Content
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
- C#
- VB
- F#
[ExtensionAttribute] public static GraphicsDevice GetGraphicsDevice( this ContentReader contentReader )
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Parameters
- contentReader
-
Type: Microsoft.Xna.Framework.Content.ContentReader
Return Value
Type: Microsoft.Xna.Framework.Graphics.GraphicsDeviceThe GraphicsDevice.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web