Méthode | Description | |
---|---|---|
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.
|
public CachedTextSurfaceRenderer ( ITextSurfaceRendered source ) : System | ||
source | ITextSurfaceRendered | |
Résultat | System |
public GetPositionTransform ( Point position, Point CellSize, bool absolutePositioning ) : Matrix | ||
position | Point | |
CellSize | Point | |
absolutePositioning | bool | |
Résultat | Matrix |
public Render ( ITextSurfaceRendered surface, Matrix renderingMatrix ) : void | ||
surface | ITextSurfaceRendered | Used only for tinting. |
renderingMatrix | Matrix | Display matrix for the rendered console. |
Résultat | void |
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 |
usePixelPositioning | bool | Ignores the |
Résultat | void |
public Update ( ITextSurfaceRendered source ) : void | ||
source | ITextSurfaceRendered | The surface to render and cache. |
Résultat | void |