메소드 | 설명 | |
---|---|---|
CreateDevice ( ) : IDisposable |
Creates a new graphics device Make sure to call DestroyGraphicsDevice() either manually, or by disposing the returned object. A typical usage of this method is shown in the following code. using(IDisposable keeper = CreateDevice()) { GraphicsDevice.DoSomethingThatCouldFail(); } |
|
DestroyDevice ( ) : void |
Destroys the created graphics device again
|
|
MockedGraphicsDeviceService ( ) |
Initializs a new mocked graphics device service
|
|
MockedGraphicsDeviceService ( DeviceType deviceType ) |
Initializs a new mocked graphics device service
|
|
MockedGraphicsDeviceService ( DeviceType deviceType, GraphicsProfile graphicsProfile ) |
Initializs a new mocked graphics device service
|
|
ResetDevice ( ) : void |
Performs a graphics device reset
|
메소드 | 설명 | |
---|---|---|
OnDeviceCreated ( ) : void |
Fires the DeviceCreated event
|
|
OnDeviceDisposing ( ) : void |
Fires the DeviceDisposing event
|
|
OnDeviceReset ( ) : void |
Fires the DeviceReset event
|
|
OnDeviceResetting ( ) : void |
Fires the DeviceResetting event
|
메소드 | 설명 | |
---|---|---|
disposeEverything ( ) : void |
Shuts down and disposes all resources used by the mocked graphics device service
|
public MockedGraphicsDeviceService ( DeviceType deviceType ) | ||
deviceType | DeviceType | Type of graphics device that will be created |
public MockedGraphicsDeviceService ( DeviceType deviceType, GraphicsProfile graphicsProfile ) | ||
deviceType | DeviceType | Type of graphics device that will be created |
graphicsProfile | GraphicsProfile | Profile the graphics device will be initialized for |