Vigilante Game Framework
1.0.0.8
A 2D/3D C++ Game Framework using SFML.
|
A helper class for calculating interpolation using Robert Penner's Easing functions. More...
#include <VInterpolate.h>
Public Types | |
enum | VInterpolateType { InBack, OutBack, InOutBack, InBounce, OutBounce, InOutBounce, InCirc, OutCirc, InOutCirc, InCubic, OutCubic, InOutCubic, InElastic, OutElastic, InOutElastic, InExpo, OutExpo, InOutExpo, Linear, InQuad, OutQuad, InOutQuad, InQuart, OutQuart, InOutQuart, InQuint, OutQuint, InOutQuint, InSine, OutSine, InOutSine, NumInterpolationTypes } |
The many types of easing functions, both intro, outtro and inouttros. | |
Static Public Member Functions | |
static float | Angle (float a, float b, float t, float d=1.0f, VInterpolateType type=Linear) |
static float | Float (float a, float b, float t, float d=1.0f, VInterpolateType type=Linear) |
static sf::Color | Color (sf::Color a, sf::Color b, float t, float d=1.0f, VInterpolateType type=Linear) |
static sf::Vector2f | Vector2f (sf::Vector2f a, sf::Vector2f b, float t, float d=1.0f, VInterpolateType type=Linear) |
static sf::Vector3f | Vector3f (sf::Vector3f a, sf::Vector3f b, float t, float d=1.0f, VInterpolateType type=Linear) |
A helper class for calculating interpolation using Robert Penner's Easing functions.
|
static |
Interpolates based on angle in degrees (0 - 360)
a | Start point. |
b | Finish point. |
t | Current point in time. |
d | Total length of time. |
type | Easing function. |
|
static |
Interpolates color values using the sf::Color variable.
a | Start point. |
b | Finish point. |
t | Current point in time. |
d | Total length of time. |
type | Easing function. |
|
static |
Interpolates standard float variables.
a | Start point. |
b | Finish point. |
t | Current point in time. |
d | Total length of time. |
type | Easing function. |
|
static |
Interpolates two dimensional vector floats using sf::Vector2f.
a | Start point. |
b | Finish point. |
t | Current point in time. |
d | Total length of time. |
type | Easing function. |
|
static |
Interpolates three dimensional vector floats variables.
a | Start point. |
b | Finish point. |
t | Current point in time. |
d | Total length of time. |
type | Easing function. |