C# Class shader.Effect

Base class for effects
Inheritance: Drawable
Exibir arquivo Open project: SFML/SFML.Net Class Usage Examples

Public Methods

Method Description
Draw ( RenderTarget target, RenderStates states ) : void
SetFont ( Font font ) : void
Update ( float time, float x, float y ) : void

Protected Methods

Method Description
Effect ( string name ) : System
GetFont ( ) : Font
OnDraw ( RenderTarget target, RenderStates states ) : void
OnUpdate ( float time, float x, float y ) : void

Method Details

Draw() public method

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

Effect() protected method

protected Effect ( string name ) : System
name string
return System

GetFont() protected method

protected GetFont ( ) : Font
return SFML.Graphics.Font

OnDraw() protected abstract method

protected abstract OnDraw ( RenderTarget target, RenderStates states ) : void
target RenderTarget
states SFML.Graphics.RenderStates
return void

OnUpdate() protected abstract method

protected abstract OnUpdate ( float time, float x, float y ) : void
time float
x float
y float
return void

SetFont() public static method

public static SetFont ( Font font ) : void
font SFML.Graphics.Font
return void

Update() public method

public Update ( float time, float x, float y ) : void
time float
x float
y float
return void