#include <map>
#include <ostream>
#include <utility>
#include <vector>
#include "glm/glm.hpp"
#include "glm/gtc/quaternion.hpp"
#include "GameFile.h"
#include "modelheaders.h"
#include "types.h"
#include "Logger.h"
Go to the source code of this file.
|
| template<class T > |
| T | interpolate (const float r, const T &v1, const T &v2) |
| | Linearly interpolate between two values.
|
| |
| template<class T > |
| T | interpolateHermite (const float r, const T &v1, const T &v2, const T &in, const T &outVal) |
| | Hermite spline interpolation between two values.
|
| |
| template<class T > |
| T | interpolateBezier (const float r, const T &v1, const T &v2, const T &in, const T &outVal) |
| | Bezier spline interpolation between two values.
|
| |
| template<> |
| glm::fquat | interpolate< glm::fquat > (const float r, const glm::fquat &v1, const glm::fquat &v2) |
| |
| float | frand () |
| |
| float | randfloat (float lower, float upper) |
| |
| int | randint (int lower, int upper) |
| |
|
| size_t | globalTime |
| | Global clock for global-sequence animations.
|
| |
◆ AnimatedShort
◆ AnimRange
A (start, end) frame range for an animation.
Definition at line 90 of file animated.h.
◆ anonymous enum
◆ Interpolations
Interpolation modes used by animated values in M2 models.
| Enumerator |
|---|
| INTERPOLATION_NONE | No interpolation (step).
|
| INTERPOLATION_LINEAR | Linear interpolation.
|
| INTERPOLATION_HERMITE | Hermite spline.
|
| INTERPOLATION_BEZIER | Bezier spline.
|
Definition at line 96 of file animated.h.
◆ frand()
◆ interpolate()
template<class T >
| T interpolate |
( |
const float |
r, |
|
|
const T & |
v1, |
|
|
const T & |
v2 |
|
) |
| |
|
inline |
Linearly interpolate between two values.
- Template Parameters
-
- Parameters
-
| r | Interpolation factor in [0, 1]. |
| v1 | Start value. |
| v2 | End value. |
- Returns
- Interpolated result.
Definition at line 32 of file animated.h.
◆ interpolate< glm::fquat >()
template<>
| glm::fquat interpolate< glm::fquat > |
( |
const float |
r, |
|
|
const glm::fquat & |
v1, |
|
|
const glm::fquat & |
v2 |
|
) |
| |
|
inline |
◆ interpolateBezier()
template<class T >
| T interpolateBezier |
( |
const float |
r, |
|
|
const T & |
v1, |
|
|
const T & |
v2, |
|
|
const T & |
in, |
|
|
const T & |
outVal |
|
) |
| |
|
inline |
Bezier spline interpolation between two values.
- Template Parameters
-
- Parameters
-
| r | Interpolation factor in [0, 1]. |
| v1 | Start value. |
| v2 | End value. |
| in | Incoming control point. |
| outVal | Outgoing control point. |
- Returns
- Interpolated result.
Definition at line 67 of file animated.h.
◆ interpolateHermite()
template<class T >
| T interpolateHermite |
( |
const float |
r, |
|
|
const T & |
v1, |
|
|
const T & |
v2, |
|
|
const T & |
in, |
|
|
const T & |
outVal |
|
) |
| |
|
inline |
Hermite spline interpolation between two values.
- Template Parameters
-
- Parameters
-
| r | Interpolation factor in [0, 1]. |
| v1 | Start value. |
| v2 | End value. |
| in | Incoming tangent. |
| outVal | Outgoing tangent. |
- Returns
- Interpolated result.
Definition at line 46 of file animated.h.
◆ randfloat()
| float randfloat |
( |
float |
lower, |
|
|
float |
upper |
|
) |
| |
◆ randint()
| int randint |
( |
int |
lower, |
|
|
int |
upper |
|
) |
| |
◆ globalTime
Global clock for global-sequence animations.
Definition at line 3 of file animated.cpp.