Class ContentReaderExtensions
Helper extension methods for ContentReader.
public static class ContentReaderExtensions
- Inheritance
-
ContentReaderExtensions
- Inherited Members
Methods
GetGraphicsDevice(ContentReader)
Returns the GraphicsDevice instance from the service provider of the ContentManager associated with this content reader.
public static GraphicsDevice GetGraphicsDevice(this ContentReader contentReader)
Parameters
contentReader
ContentReader
Returns
Exceptions
- InvalidOperationException
The ContentManager.ServiceProvider does not contain a GraphicsDevice instance.