Table of Contents

Class EngineUtilsAnimation

Namespace
OmegaEngine
Assembly
OmegaEngine.dll

Provides simple animation helpers for the Engine.

public static class EngineUtilsAnimation
Inheritance
object
EngineUtilsAnimation

Methods

Animate(Engine, double, double, Action<double>, AnimationOptions)

Automatically interpolates between two numeric values while rendering

public static void Animate(this Engine engine, double start, double end, Action<double> callback, AnimationOptions options)

Parameters

engine Engine

The engine to use for rendering

start double

The value to start off with

end double

The value to end up at

callback Action<double>

The delegate to call for with the updated interpolated value each frame

options AnimationOptions

Options controlling the animation

DimDown(Engine, AnimationOptions?)

Dims in the screen down

public static void DimDown(this Engine engine, AnimationOptions? options = null)

Parameters

engine Engine

The engine to use for rendering

options AnimationOptions

Options controlling the animation

DimUp(Engine, AnimationOptions?)

Dims in the screen back up

public static void DimUp(this Engine engine, AnimationOptions? options = null)

Parameters

engine Engine

The engine to use for rendering

options AnimationOptions

Options controlling the animation

FadeIn(Engine, AnimationOptions?)

Fades in the screen from total black

public static void FadeIn(this Engine engine, AnimationOptions? options = null)

Parameters

engine Engine

The engine to use for rendering

options AnimationOptions

Options controlling the animation