GraphicsDeviceManager Members
The following tables list the members exposed by the GraphicsDeviceManager type.
Public Constructors
Name | Description | |
---|---|---|
GraphicsDeviceManager | Creates a new GraphicsDeviceManager and registers it to handle the configuration and management of the graphics device for the specified Game. |
Public Fields
Name | Description | |
---|---|---|
DefaultBackBufferHeight | Specifies the default minimum back-buffer height. | |
DefaultBackBufferWidth | Specifies the default minimum back-buffer width. | |
ValidAdapterFormats | Specifies the set of adapter formats supported by the GraphicsDeviceManager. | |
ValidBackBufferFormats | Specifies the set of back-buffer formats supported by the GraphicsDeviceManager. | |
ValidDeviceTypes | Specifies the set of valid device types supported by the GraphicsDeviceManager. |
Public Properties
Name | Description | |
---|---|---|
GraphicsDevice | Gets the GraphicsDevice associated with the GraphicsDeviceManager. | |
IsFullScreen | Gets or sets a value that indicates whether the device should start in full-screen mode. | |
MinimumPixelShaderProfile | Gets or sets the minimum pixel shader version required by the GraphicsDeviceManager. | |
MinimumVertexShaderProfile | Gets or sets the minimum vertex shader version required by the GraphicsDeviceManager. | |
PreferMultiSampling | Gets or sets a value that indicates whether to enable a multisampled back buffer. | |
PreferredBackBufferFormat | Gets or sets the format of the back buffer. | |
PreferredBackBufferHeight | Gets or sets the preferred back-buffer height. | |
PreferredBackBufferWidth | Gets or sets the preferred back-buffer width. | |
PreferredDepthStencilFormat | Gets or sets the format of the depth stencil. | |
SynchronizeWithVerticalRetrace | Gets or sets a value that indicates whether to sync to the vertical trace (vsync) when presenting the back buffer. |
Public Methods
Name | Description | |
---|---|---|
ApplyChanges | Applies any changes to device-related properties, changing the graphics device as necessary. | |
Equals | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
ReferenceEquals | (Inherited from Object.) | |
ToggleFullScreen | Toggles between full screen and windowed mode. | |
ToString | (Inherited from Object.) |
Protected Methods
Name | Description | |
---|---|---|
CanResetDevice | Determines whether the given GraphicsDeviceInformation is compatible with the existing graphics device. | |
Dispose | Releases the unmanaged resources used by the GraphicsDeviceManager and optionally releases the managed resources. | |
Finalize | (Inherited from Object.) | |
FindBestDevice | Finds the best device configuration that is compatible with the current device preferences. | |
MemberwiseClone | (Inherited from Object.) | |
OnDeviceCreated | Called when a device is created. Raises the DeviceCreated event. | |
OnDeviceDisposing | Called when a device is being disposed. Raises the DeviceDisposing event. | |
OnDeviceReset | Called when the device has been reset. Raises the DeviceReset event. | |
OnDeviceResetting | Called when the device is about to be reset. Raises the DeviceResetting event. | |
OnPreparingDeviceSettings | Called when the GraphicsDeviceManager is changing the GraphicsDevice settings (during reset or recreation of the GraphicsDevice). Raises the PreparingDeviceSettings event. | |
RankDevices | Ranks the given list of devices that satisfy the given preferences. |
Public Events
Name | Description | |
---|---|---|
DeviceCreated | Raised when a new graphics device is created. | |
DeviceDisposing | Raised when the GraphicsDeviceManager is being disposed. | |
DeviceReset | Raised when the GraphicsDeviceManager is reset. | |
DeviceResetting | Raised when the GraphicsDeviceManager is about to be reset. | |
Disposed | Raised when the GraphicsDeviceManager is disposed. | |
PreparingDeviceSettings | Raised when the GraphicsDeviceManager is changing the GraphicsDevice settings (during reset or recreation of the GraphicsDevice). |
Explicit Interface Implementations
Name | Description | |
---|---|---|
Microsoft.Xna.Framework.IGraphicsDeviceManager.BeginDraw | Prepares the GraphicsDevice to draw. | |
Microsoft.Xna.Framework.IGraphicsDeviceManager.CreateDevice | Called to ensure that the device manager has created a valid device. | |
System.IDisposable.Dispose | Releases all resources used by the GraphicsDeviceManager class. | |
Microsoft.Xna.Framework.IGraphicsDeviceManager.EndDraw | Called by the game at the end of drawing and presents the final rendering. |
See Also
Reference
GraphicsDeviceManager Class
Microsoft.Xna.Framework Namespace