Class GraphicsDeviceServiceLocal
A default simple implementation of IGraphicsDeviceService that is used by some systems that only need quick access to the GraphicsDevice.
public class GraphicsDeviceServiceLocal : IGraphicsDeviceService
- Inheritance
-
objectGraphicsDeviceServiceLocal
- Implements
- Extension Methods
Remarks
For a full-fledged implementation of IGraphicsDeviceService that manages
correctly the device life-cycle and provides many more features, see GraphicsDeviceManager
in the Stride.Games namespace.
Constructors
GraphicsDeviceServiceLocal(IServiceRegistry, GraphicsDevice)
Initializes a new instance of the GraphicsDeviceServiceLocal class.
public GraphicsDeviceServiceLocal(IServiceRegistry registry, GraphicsDevice graphicsDevice)
Parameters
registryIServiceRegistryThe registry of registered services.
graphicsDeviceGraphicsDeviceThe graphics device.
GraphicsDeviceServiceLocal(GraphicsDevice)
Initializes a new instance of the GraphicsDeviceServiceLocal class.
public GraphicsDeviceServiceLocal(GraphicsDevice graphicsDevice)
Parameters
graphicsDeviceGraphicsDeviceThe graphics device.
Properties
GraphicsDevice
Gets the current Graphcs Device.
public GraphicsDevice GraphicsDevice { get; }
Property Value
Events
DeviceCreated
Occurs when a device is created.
public event EventHandler<EventArgs> DeviceCreated
Event Type
DeviceDisposing
Occurs when a device is being disposed.
public event EventHandler<EventArgs> DeviceDisposing
Event Type
DeviceReset
Occurs when a device has been reset.
public event EventHandler<EventArgs> DeviceReset
Event Type
DeviceResetting
Occurs when a device is going to be reset.
public event EventHandler<EventArgs> DeviceResetting