#include <AnimationValue.h>
Public Member Functions | |
float | getFloat (unsigned int index) const |
void | setFloat (unsigned int index, float value) |
void | getFloats (unsigned int index, float *values, unsigned int count) const |
void | setFloats (unsigned int index, float *values, unsigned int count) |
Defines a running animation value which can have one or more floats.
float gameplay::AnimationValue::getFloat | ( | unsigned int | index | ) | const |
Gets the value at the specified index.
index | The index of the component to get the value for. |
void gameplay::AnimationValue::getFloats | ( | unsigned int | index, |
float * | values, | ||
unsigned int | count | ||
) | const |
Copies one or more float values from this AnimationValue into the specified array.
index | The index to start copying from. |
values | Pointer to float array to copy values into. |
count | Number of values to copy. |
void gameplay::AnimationValue::setFloat | ( | unsigned int | index, |
float | value | ||
) |
Sets the value at the specified index.
index | The index of the component to set the value for. |
value | The value to set the component to. |
void gameplay::AnimationValue::setFloats | ( | unsigned int | index, |
float * | values, | ||
unsigned int | count | ||
) |
Copies one or more float values into the AnimationValue.
index | The index of the first component to set the value for. |
values | Array of values to copy into the AnimationValue. |
count | Number of values to in the array to copy in. |