Table of Contents

Class GraphicsDeviceServiceLocal

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

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
object
GraphicsDeviceServiceLocal
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

registry IServiceRegistry

The registry of registered services.

graphicsDevice GraphicsDevice

The graphics device.

GraphicsDeviceServiceLocal(GraphicsDevice)

Initializes a new instance of the GraphicsDeviceServiceLocal class.

public GraphicsDeviceServiceLocal(GraphicsDevice graphicsDevice)

Parameters

graphicsDevice GraphicsDevice

The graphics device.

Properties

GraphicsDevice

Gets the current Graphcs Device.

public GraphicsDevice GraphicsDevice { get; }

Property Value

GraphicsDevice

Events

DeviceCreated

Occurs when a device is created.

public event EventHandler<EventArgs> DeviceCreated

Event Type

EventHandler<EventArgs>

DeviceDisposing

Occurs when a device is being disposed.

public event EventHandler<EventArgs> DeviceDisposing

Event Type

EventHandler<EventArgs>

DeviceReset

Occurs when a device has been reset.

public event EventHandler<EventArgs> DeviceReset

Event Type

EventHandler<EventArgs>

DeviceResetting

Occurs when a device is going to be reset.

public event EventHandler<EventArgs> DeviceResetting

Event Type

EventHandler<EventArgs>