Provides simple animation helpers for the Engine.
More...
|
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...
|
|
Provides simple animation helpers for the Engine.
◆ DimDown()
static void OmegaEngine.EngineUtilsAnimation.DimDown |
( |
this Engine |
engine | ) |
|
|
inlinestatic |
◆ DimUp()
static void OmegaEngine.EngineUtilsAnimation.DimUp |
( |
this Engine |
engine | ) |
|
|
inlinestatic |
Dims in the screen back up
◆ FadeIn()
static void OmegaEngine.EngineUtilsAnimation.FadeIn |
( |
this Engine |
engine | ) |
|
|
inlinestatic |
Fades in the screen from total black in one second
◆ Interpolate()
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
-
engine | The engine to use for rendering |
start | The value to start off with |
target | The value to end up at |
callback | The delegate to call for with the updated interpolated value each frame |
duration | The time for complete transition in seconds |
trigonometric | true smooth (trigonometric) and false for linear interpolation |
The documentation for this class was generated from the following file:
- OmegaEngine/EngineUtilsAnimation.cs