C# Класс 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).
Наследование: IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
Dispose ( ) : void

Immediately releases all resources owned by the instancer

GraphicsDeviceKeeper ( MockedGraphicsDeviceService dummyService )

Initializes a new graphics device keeper

Описание методов

Dispose() публичный Метод

Immediately releases all resources owned by the instancer
public Dispose ( ) : void
Результат void

GraphicsDeviceKeeper() публичный Метод

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 ///