Interface IRenderService
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
FrameTime
The time the last frame took to render
TimeSpan FrameTime { get; }
Property Value
GraphicsContext
Gets the graphics context to be used for rendering
IManagedGraphicsContext? GraphicsContext { get; }
Property Value
IsPaused
Gets or sets a boolean indicating whether rendering is paused.
bool IsPaused { get; set; }
Property Value
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
FrameRendering
Occurs whenever a frame is rendering, after modules have rendered
event EventHandler<FrameRenderingEventArgs> FrameRendering