C# Class Texter.TextDisplay

Inheritance: SFML.Graphics.Transformable, Drawable, ITextRenderer
Afficher le fichier Open project: Rohansi/Texter Class Usage Examples

Méthodes publiques

Свойство Type Description
DataFolder string

Méthodes publiques

Méthode 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 méthode

public Dispose ( ) : void
Résultat void

Draw() public méthode

public Draw ( RenderTarget target, RenderStates states ) : void
target RenderTarget
states SFML.Graphics.RenderStates
Résultat void

Get() public méthode

public Get ( int x, int y ) : Character
x int
y int
Résultat Character

PaletteGet() public méthode

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

PaletteSet() public méthode

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

Set() public méthode

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

TextDisplay() public méthode

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
Résultat System

Property Details

DataFolder public_oe static_oe property

public static string DataFolder
Résultat string