diff options
Diffstat (limited to 'src/misc.h')
-rw-r--r-- | src/misc.h | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/src/misc.h b/src/misc.h index efe575a..96b2307 100644 --- a/src/misc.h +++ b/src/misc.h @@ -2,31 +2,41 @@ #define BLACKSHADES_MISC_H #include <stdbool.h> +#include <stddef.h> #include <AL/al.h> #include <GL/gl.h> +struct AnimationData { + struct { + struct { float x, y, z; } joints[20]; + float speed; + } *ptr; + size_t len; +}; + struct JointData { - signed char label; - float x, y, z; - float length; - unsigned char model; - bool visible; - bool lower; - signed char parent; + signed char label; + float x, y, z; + float length; + unsigned char model; + bool visible; + bool lower; + signed char parent; }; struct MuscleData { - float length, initlen, minlen, maxlen; - bool flag; - bool visible; - signed char parent1; - signed char parent2; + float length, initlen, minlen, maxlen; + bool flag; + bool visible; + signed char parent1; + signed char parent2; }; #ifdef __cplusplus extern "C" { #endif // __cplusplus + AnimationData loadAnimation(const char*); void loadJoints(JointData*); void loadMuscles(MuscleData*); ALuint loadSound(const char*); |