C# Class Reign.Video.Abstraction.Font

Inheritance: DisposableResource, ILoadable
Show file Open project: reignstudios/ReignSDK

Public Methods

Method Description
CharacterIndex ( char @char ) : int
Dispose ( ) : void
Draw ( string text, Vector2 position, Vector4 color, float size, bool centeredX, bool centeredY ) : void
DrawStart ( Camera camera ) : void
FindCharacter ( char @char ) : Character
Font ( IDisposableResource parent, IShader shader, ITexture2D texture, string metricsFileName, Loader loadedCallback ) : System
UpdateLoad ( ) : bool

Private Methods

Method Description
draw ( string text, Vector2 textureSize, Vector2 position, Vector4 color, float size, bool centeredX, bool centeredY ) : void
drawCharacter ( Vector2 position, Vector2 size, Vector2 positionUV, Vector2 sizeUV, Vector4 color ) : void
init ( IShader shader, ITexture2D texture, Stream stream, string metricsFileName, Loader loadedCallback ) : void

Method Details

CharacterIndex() public method

public CharacterIndex ( char @char ) : int
@char char
return int

Dispose() public method

public Dispose ( ) : void
return void

Draw() public method

public Draw ( string text, Vector2 position, Vector4 color, float size, bool centeredX, bool centeredY ) : void
text string
position Vector2
color Vector4
size float
centeredX bool
centeredY bool
return void

DrawStart() public method

public DrawStart ( Camera camera ) : void
camera Camera
return void

FindCharacter() public method

public FindCharacter ( char @char ) : Character
@char char
return Character

Font() public method

public Font ( IDisposableResource parent, IShader shader, ITexture2D texture, string metricsFileName, Loader loadedCallback ) : System
parent IDisposableResource
shader IShader
texture ITexture2D
metricsFileName string
loadedCallback Reign.Core.Loader
return System

UpdateLoad() public method

public UpdateLoad ( ) : bool
return bool