C# Class Indiefreaks.Xna.Core.Interpolator

Afficher le fichier Open project: Indiefreaks/igf Class Usage Examples

Méthodes publiques

Méthode Description
Create ( float start, float end, float length, Action step, Action completed ) : Interpolator

Creates a new Interpolator.

Create ( float start, float end, float length, InterpolatorScaleDelegate scale, InterpolatorEaseDirection direction, Action step, Action completed ) : Interpolator

Creates a new Interpolator.

Stop ( ) : void

Stops the Interpolator.

Update ( float dt ) : void

Updates all the Interpolators.

Method Details

Create() public static méthode

Creates a new Interpolator.
public static Create ( float start, float end, float length, Action step, Action completed ) : Interpolator
start float The starting value.
end float The ending value.
length float The length of time, in seconds, to perform the interpolation.
step Action An optional callback to invoke when the Interpolator is updated.
completed Action An optional callback to invoke when the Interpolator completes.
Résultat Interpolator

Create() public static méthode

Creates a new Interpolator.
public static Create ( float start, float end, float length, InterpolatorScaleDelegate scale, InterpolatorEaseDirection direction, Action step, Action completed ) : Interpolator
start float The starting value.
end float The ending value.
length float The length of time, in seconds, to perform the interpolation.
scale InterpolatorScaleDelegate A method to perform
direction InterpolatorEaseDirection
step Action An optional callback to invoke when the Interpolator is updated.
completed Action An optional callback to invoke when the Interpolator completes.
Résultat Interpolator

Stop() public méthode

Stops the Interpolator.
public Stop ( ) : void
Résultat void

Update() public static méthode

Updates all the Interpolators.
public static Update ( float dt ) : void
dt float The elapsed time (in seconds) to advance the timers. Generally you want to pass in (float)gameTime.ElapsedGameTime.TotalSeconds from your main Game class.
Résultat void