C# Класс SadConsole.Readers.TextureToSurfaceReader

Reads a texture to a cached surface. Used for animation.
Показать файл Открыть проект

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

Метод Описание
GetSurface ( Microsoft.Xna.Framework.Graphics.Texture2D image ) : TextSurface

Returns a surface with the specified image rendered to it as characters.

TextureToSurfaceReader ( int pixelWidth, int pixelHeight, Font font ) : Microsoft.Xna.Framework

Creates a new instance of the class.

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

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

Returns a surface with the specified image rendered to it as characters.
public GetSurface ( Microsoft.Xna.Framework.Graphics.Texture2D image ) : TextSurface
image Microsoft.Xna.Framework.Graphics.Texture2D The image to render.
Результат TextSurface

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

Creates a new instance of the class.
public TextureToSurfaceReader ( int pixelWidth, int pixelHeight, Font font ) : Microsoft.Xna.Framework
pixelWidth int Width the source texture.
pixelHeight int Height of the source texture.
font Font Font used for rendering.
Результат Microsoft.Xna.Framework