OmegaEngine API  1.0.3
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Static Public Member Functions | List of all members
OmegaEngine.EngineUtilsAnimation Class Reference

Provides simple animation helpers for the Engine. More...

Static Public Member Functions

static void Interpolate (this Engine engine, double start, double target, Action< double > callback, double duration=1, bool trigonometric=true)
 Automatically interpolates between two numeric values while rendering More...
 
static void FadeIn (this Engine engine)
 Fades in the screen from total black in one second More...
 
static void DimDown (this Engine engine)
 Dims in the screen down More...
 
static void DimUp (this Engine engine)
 Dims in the screen back up More...
 

Detailed Description

Provides simple animation helpers for the Engine.

Member Function Documentation

static void OmegaEngine.EngineUtilsAnimation.DimDown ( this Engine  engine)
inlinestatic

Dims in the screen down

static void OmegaEngine.EngineUtilsAnimation.DimUp ( this Engine  engine)
inlinestatic

Dims in the screen back up

static void OmegaEngine.EngineUtilsAnimation.FadeIn ( this Engine  engine)
inlinestatic

Fades in the screen from total black in one second

static void OmegaEngine.EngineUtilsAnimation.Interpolate ( this Engine  engine,
double  start,
double  target,
Action< double >  callback,
double  duration = 1,
bool  trigonometric = true 
)
inlinestatic

Automatically interpolates between two numeric values while rendering

Parameters
engineThe engine to use for rendering
startThe value to start off with
targetThe value to end up at
callbackThe delegate to call for with the updated interpolated value each frame
durationThe time for complete transition in seconds
trigonometrictrue smooth (trigonometric) and false for linear interpolation

The documentation for this class was generated from the following file: