Table of Contents

Interface IRenderService

Namespace
Artemis.Core.Services
Assembly
Artemis.Core.dll

Represents a service that manages the render loop and renderers.

public interface IRenderService

Properties

FrameRate

The amount of frames rendered each second

int FrameRate { get; }

Property Value

int

FrameTime

The time the last frame took to render

TimeSpan FrameTime { get; }

Property Value

TimeSpan

GraphicsContext

Gets the graphics context to be used for rendering

IManagedGraphicsContext? GraphicsContext { get; }

Property Value

IManagedGraphicsContext

IsPaused

Gets or sets a boolean indicating whether rendering is paused.

bool IsPaused { get; set; }

Property Value

bool

Surface

Gets the RGB surface to which is being rendered.

RGBSurface Surface { get; }

Property Value

RGBSurface

Methods

Initialize()

Initializes the render service and starts rendering.

void Initialize()

Events

FrameRendered

Occurs whenever a frame is finished rendering and the render pipeline is closed

event EventHandler<FrameRenderedEventArgs> FrameRendered

Event Type

EventHandler<FrameRenderedEventArgs>

FrameRendering

Occurs whenever a frame is rendering, after modules have rendered

event EventHandler<FrameRenderingEventArgs> FrameRendering

Event Type

EventHandler<FrameRenderingEventArgs>