C# Class Nuclex.Testing.Xna.MockedGraphicsDeviceService.GraphicsDeviceKeeper

Keeps a graphics device alive for RAII-like usage
RAII means "Resource Acquisition Is Initialization" and is a very widespread pattern in languages with deterministic finalization (read: not .NET).
Inheritance: IDisposable
Mostra file Open project: csce3513/Team18

Public Methods

Method Description
Dispose ( ) : void

Immediately releases all resources owned by the instancer

GraphicsDeviceKeeper ( MockedGraphicsDeviceService dummyService )

Initializes a new graphics device keeper

Method Details

Dispose() public method

Immediately releases all resources owned by the instancer
public Dispose ( ) : void
return void

GraphicsDeviceKeeper() public method

Initializes a new graphics device keeper
public GraphicsDeviceKeeper ( MockedGraphicsDeviceService dummyService )
dummyService MockedGraphicsDeviceService /// Dummy graphics device service for whose graphics device the keeper /// will be responsible ///