C# Class Texter.TextDisplay

Inheritance: SFML.Graphics.Transformable, Drawable, ITextRenderer
ファイルを表示 Open project: Rohansi/Texter Class Usage Examples

Public Properties

Property Type Description
DataFolder string

Public Methods

Method Description
Dispose ( ) : void
Draw ( RenderTarget target, RenderStates states ) : void
Get ( int x, int y ) : Character
PaletteGet ( byte index ) : System.Color

Gets a color from the display's palette.

PaletteSet ( byte index, System.Color color ) : void

Sets a color in the display's palette.

Set ( int x, int y, Character character, bool useBlending = true ) : void
TextDisplay ( uint width, uint height, string fontFile = "font.png", bool convertFont = true, string paletteFile = "palette.png" ) : System

Constructs a text display.

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Draw() public method

public Draw ( RenderTarget target, RenderStates states ) : void
target RenderTarget
states SFML.Graphics.RenderStates
return void

Get() public method

public Get ( int x, int y ) : Character
x int
y int
return Character

PaletteGet() public method

Gets a color from the display's palette.
public PaletteGet ( byte index ) : System.Color
index byte
return System.Color

PaletteSet() public method

Sets a color in the display's palette.
public PaletteSet ( byte index, System.Color color ) : void
index byte
color System.Color
return void

Set() public method

public Set ( int x, int y, Character character, bool useBlending = true ) : void
x int
y int
character Character
useBlending bool
return void

TextDisplay() public method

Constructs a text display.
public TextDisplay ( uint width, uint height, string fontFile = "font.png", bool convertFont = true, string paletteFile = "palette.png" ) : System
width uint Width in characters
height uint Height in characters
fontFile string Font texture
convertFont bool Enable support for masked fonts
paletteFile string Palette texture
return System

Property Details

DataFolder public_oe static_oe property

public static string DataFolder
return string