Table of Contents

Interface IGraphicsDeviceManager

Namespace
Stride.Games
Assembly
Stride.Games.dll

Defines the interface for an object that manages the Graphics Device lifecycle.

public interface IGraphicsDeviceManager
Extension Methods

Methods

BeginDraw()

Called by the Game at the beginning of drawing.

bool BeginDraw()

Returns

bool

true if the Graphics Device is ready to draw; false if the Graphics Device is not ready or if the Game should skip drawing this frame.

CreateDevice()

Creates a valid Graphics Device ready to draw.

void CreateDevice()

Exceptions

InvalidOperationException

Thrown if the Graphics Device could not be created.

EndDraw(bool)

Called by the Game at the end of drawing.

void EndDraw(bool present)

Parameters

present bool

A value indicating whether the Game should present the Back-Buffer to the screen.

Exceptions

GraphicsException

Could not present the Back-Buffer after drawing.

GraphicsDeviceException

The Graphics Device is not in a valid state to end drawing, or it is not available.