TextureToSurfaceReader Class
Definition
Section titled “Definition”Reads a texture to a cached surface. Used for animation.
public class TextureToSurfaceReaderInheritance object
Constructors
Section titled “Constructors”TextureToSurfaceReader(int, int, IFont, Point)
Section titled “TextureToSurfaceReader(int, int, IFont, Point)”Creates a new instance of the class.
public TextureToSurfaceReader(int pixelWidth, int pixelHeight, IFont font, Point fontSize)Parameters
Section titled “Parameters”pixelWidth int
Width the source texture.
pixelHeight int
Height of the source texture.
font IFont
Font used for rendering.
fontSize SadRogue.Primitives.Point
Size of the font.
Properties
Section titled “Properties”UseBlockMode
Section titled “UseBlockMode”Renders the cells as blocks instead of characters.
public bool UseBlockMode { get; set; }Methods
Section titled “Methods”GetSurface(Texture2D)
Section titled “GetSurface(Texture2D)”Returns a surface with the specified image rendered to it as characters.
public Console GetSurface(Texture2D image)Parameters
Section titled “Parameters”image Microsoft.Xna.Framework.Graphics.Texture2D
The image to render.
Returns
Section titled “Returns”Console
The surface.