Skip to content

IRenderer Interface

Draws a surface.

C#
public interface IRenderer : IDisposable

The name used to create the renderer from the host.

C#
string Name { get; set; }

The output texture created by the renderer.

C#
ITexture Output { get; }

A 0 to 255 value represening how transparent the surface is when drawn to the screen. 255 represents full visibility.

C#
byte Opacity { get; set; }

true when the renderer is being forced to be redrawn this frame; otherwise false.

C#
bool IsForced { get; set; }

The render steps for the renderer.

C#
List<IRenderStep> Steps { get; set; }

Refreshes a cached drawing state.

C#
void Refresh(IScreenSurface surface, bool force = false)

surface IScreenSurface
Target surface.

force bool
When true, indicates the refresh should happen even if a surface isn’t dirty.

Creates a drawcall in the drawing pipeline.

C#
void Render(IScreenSurface surface)

surface IScreenSurface
Target surface.

Called when various states in the host change.

C#
void OnHostUpdated(IScreenObject host)

host IScreenObject
The host that uses this component.