C# 클래스 SadConsole.Consoles.CachedTextSurfaceRenderer

상속: ITextSurfaceRenderer, ITextSurfaceRendererUpdate
파일 보기 프로젝트 열기: Thraka/SadConsole 1 사용 예제들

공개 메소드들

메소드 설명
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