GraphicsDeviceManagerΒΆ
-
class
GraphicsDeviceManager
: System.Object, IGraphicsDeviceService, System.IDisposable, IGraphicsDeviceManager Used to initialize and control the presentation of the graphics device.
-
int
DefaultBackBufferWidth
The default back buffer width.
-
int
DefaultBackBufferHeight
The default back buffer height.
-
GraphicsProfile
GraphicsProfile
The profile which determines the graphics feature level.
-
readonly GraphicsDevice
GraphicsDevice
Returns the graphics device for this manager.
-
bool
IsFullScreen
Indicates the desire to switch into fullscreen mode.
-
bool
HardwareModeSwitch
Gets or sets the boolean which defines how window switches from windowed to fullscreen state. “Hard” mode(true) is slow to switch, but more effecient for performance, while “soft” mode(false) is vice versa. The default value is true.
-
bool
PreferMultiSampling
Indicates the desire for a multisampled back buffer.
-
SurfaceFormat
PreferredBackBufferFormat
Indicates the desired back buffer color format.
-
int
PreferredBackBufferHeight
Indicates the desired back buffer height in pixels.
-
int
PreferredBackBufferWidth
Indicates the desired back buffer width in pixels.
-
DepthFormat
PreferredDepthStencilFormat
Indicates the desired depth-stencil buffer format.
-
bool
SynchronizeWithVerticalRetrace
Indicates the desire for vsync when presenting the back buffer.
-
DisplayOrientation
SupportedOrientations
Indicates the desired allowable display orientations when the device is rotated.
-
public bool
BeginDraw
()
-
public void
EndDraw
()
-
public void
add_DeviceCreated
(System.EventHandler<EventArgs> value) Parameters: - value (System.EventHandler<EventArgs>) –
-
public void
remove_DeviceCreated
(System.EventHandler<EventArgs> value) Parameters: - value (System.EventHandler<EventArgs>) –
-
public void
add_DeviceDisposing
(System.EventHandler<EventArgs> value) Parameters: - value (System.EventHandler<EventArgs>) –
-
public void
remove_DeviceDisposing
(System.EventHandler<EventArgs> value) Parameters: - value (System.EventHandler<EventArgs>) –
-
public void
add_DeviceReset
(System.EventHandler<EventArgs> value) Parameters: - value (System.EventHandler<EventArgs>) –
-
public void
remove_DeviceReset
(System.EventHandler<EventArgs> value) Parameters: - value (System.EventHandler<EventArgs>) –
-
public void
add_DeviceResetting
(System.EventHandler<EventArgs> value) Parameters: - value (System.EventHandler<EventArgs>) –
-
public void
remove_DeviceResetting
(System.EventHandler<EventArgs> value) Parameters: - value (System.EventHandler<EventArgs>) –
-
public void
add_PreparingDeviceSettings
(System.EventHandler<PreparingDeviceSettingsEventArgs> value) Parameters: - value (System.EventHandler<PreparingDeviceSettingsEventArgs>) –
-
public void
remove_PreparingDeviceSettings
(System.EventHandler<PreparingDeviceSettingsEventArgs> value) Parameters: - value (System.EventHandler<PreparingDeviceSettingsEventArgs>) –
-
public void
add_Disposed
(System.EventHandler<EventArgs> value) Parameters: - value (System.EventHandler<EventArgs>) –
-
public void
remove_Disposed
(System.EventHandler<EventArgs> value) Parameters: - value (System.EventHandler<EventArgs>) –
-
void
OnDeviceReset
(System.EventArgs e) Parameters: - e (System.EventArgs) –
-
void
OnDeviceCreated
(System.EventArgs e) Parameters: - e (System.EventArgs) –
-
public void
Dispose
()
-
public void
ApplyChanges
() Applies any pending property changes to the graphics device.
-
public void
ToggleFullScreen
() Toggles between windowed and fullscreen modes.
-
int