C# Class SadConsole.Readers.TextureToSurfaceReader

Reads a texture to a cached surface. Used for animation.
显示文件 Open project: Thraka/SadConsole

Public Methods

Method Description
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.

Method Details

GetSurface() public method

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.
return TextSurface

TextureToSurfaceReader() public method

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.
return Microsoft.Xna.Framework