C# Класс SadConsole.Consoles.CachedTextSurfaceRenderer

Наследование: ITextSurfaceRenderer, ITextSurfaceRendererUpdate
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CachedTextSurfaceRenderer ( ITextSurfaceRendered source ) : System

Creates a new renderer.

GetPositionTransform ( Point position, Point CellSize, bool absolutePositioning ) : Matrix

Gets the Matrix transform that positions the console on the screen.

Render ( ITextSurfaceRendered surface, Matrix renderingMatrix ) : void

Renders the cached surface from a previous call to the constructor or the Update(ITextSurfaceRendered) method.

Render ( ITextSurfaceRendered surface, Point position, bool usePixelPositioning = false ) : void

Renders the cached surface from a previous call to the constructor or the Update(ITextSurfaceRendered) method.

Update ( ITextSurfaceRendered source ) : void

Updates the cache based on the source surface.

Описание методов

CachedTextSurfaceRenderer() публичный Метод

Creates a new renderer.
public CachedTextSurfaceRenderer ( ITextSurfaceRendered source ) : System
source ITextSurfaceRendered
Результат System

GetPositionTransform() публичный Метод

Gets the Matrix transform that positions the console on the screen.
public GetPositionTransform ( Point position, Point CellSize, bool absolutePositioning ) : Matrix
position Point
CellSize Point
absolutePositioning bool
Результат Matrix

Render() публичный Метод

Renders the cached surface from a previous call to the constructor or the Update(ITextSurfaceRendered) method.
public Render ( ITextSurfaceRendered surface, Matrix renderingMatrix ) : void
surface ITextSurfaceRendered Used only for tinting.
renderingMatrix Matrix Display matrix for the rendered console.
Результат void

Render() публичный Метод

Renders the cached surface from a previous call to the constructor or the Update(ITextSurfaceRendered) method.
public Render ( ITextSurfaceRendered surface, Point position, bool usePixelPositioning = false ) : void
surface ITextSurfaceRendered Only used for tinting and calculation the position from the font.
position Point Calculates the rendering position on the screen based on the size of the parameter.
usePixelPositioning bool Ignores the font for positioning and instead treats the parameter in pixels.
Результат void

Update() публичный Метод

Updates the cache based on the source surface.
public Update ( ITextSurfaceRendered source ) : void
source ITextSurfaceRendered The surface to render and cache.
Результат void