Class EngineUtilsAnimation
- Namespace
- OmegaEngine
- Assembly
- OmegaEngine.dll
Provides simple animation helpers for the Engine.
public static class EngineUtilsAnimation
- Inheritance
-
objectEngineUtilsAnimation
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
engineEngineThe engine to use for rendering
startdoubleThe value to start off with
enddoubleThe value to end up at
callbackAction<double>The delegate to call for with the updated interpolated value each frame
optionsAnimationOptionsOptions controlling the animation
DimDown(Engine, AnimationOptions?)
Dims in the screen down
public static void DimDown(this Engine engine, AnimationOptions? options = null)
Parameters
engineEngineThe engine to use for rendering
optionsAnimationOptionsOptions controlling the animation
DimUp(Engine, AnimationOptions?)
Dims in the screen back up
public static void DimUp(this Engine engine, AnimationOptions? options = null)
Parameters
engineEngineThe engine to use for rendering
optionsAnimationOptionsOptions controlling the animation
FadeIn(Engine, AnimationOptions?)
Fades in the screen from total black
public static void FadeIn(this Engine engine, AnimationOptions? options = null)
Parameters
engineEngineThe engine to use for rendering
optionsAnimationOptionsOptions controlling the animation