Skip to content

ControlHostRenderStep Class

Draws a ControlHost.

C#
public class ControlHostRenderStep : IRenderStep, IDisposable, IRenderStepTexture

Inheritance object

Implements IRenderStep, IDisposable, IRenderStepTexture

C#
public ControlHostRenderStep()

The name of the render step.

C#
public string Name { get; }

The cached texture of the drawn surface.

C#
public RenderTarget2D BackingTexture { get; }

The texture created by the render step.

C#
public ITexture CachedTexture { get; }

Indicates priority related to other steps. Lowest runs first.

C#
public uint SortOrder { get; set; }

Sets the ControlHost.

C#
public void SetData(object data)

data object
A ControlHost object.

Called when the step should reset any state or texture information.

C#
public void Reset()

Refresh(IRenderer, IScreenSurface, bool, bool)

Section titled “Refresh(IRenderer, IScreenSurface, bool, bool)”

Called to redraw the render step if needed.

C#
public bool Refresh(IRenderer renderer, IScreenSurface screenObject, bool backingTextureChanged, bool isForced)

renderer IRenderer
The renderer the render step is using.

screenObject IScreenSurface
The surface associated with the renderer. This may be null.

backingTextureChanged bool
true to indicate the Output changed; otherwise false.

isForced bool
true when refresh is being forced; otherwise false.

bool
true when the step is going to draw something new and is requesting a Composing(IRenderer, IScreenSurface) step; otherwise false.

Called when the renderer needs to redraw the Output texture.

C#
public void Composing(IRenderer renderer, IScreenSurface screenObject)

renderer IRenderer
The renderer the render step is using.

screenObject IScreenSurface
The surface associated with the renderer. This may be null.

Called when building draw calls for the render pipeline.

C#
public void Render(IRenderer renderer, IScreenSurface screenObject)

renderer IRenderer
The renderer the render step is using.

screenObject IScreenSurface
The surface associated with the renderer. This may be null.

RenderControlCells(ControlBase, ScreenSurfaceRenderer, IFont, Point, Rectangle)

Section titled “RenderControlCells(ControlBase, ScreenSurfaceRenderer, IFont, Point, Rectangle)”

Renders the cells of a control.

C#
protected void RenderControlCells(ControlBase control, ScreenSurfaceRenderer renderer, IFont font, Point fontSize, Rectangle parentViewRect)

control ControlBase
The control.

renderer ScreenSurfaceRenderer
The renderer used with this step.

font IFont
The font to render the cells with.

fontSize SadRogue.Primitives.Point
The size of a cell in pixels.

parentViewRect SadRogue.Primitives.Rectangle
The view of the parent to cull cells from.

Disposes the object.

C#
protected void Dispose(bool disposing)

disposing bool
true to indicate this method was called from Dispose().

C#
public void Dispose()

Finalizes the object for collection.

C#
protected ~ControlHostRenderStep()