#ifndef BLACKSHADES_MISC_H #define BLACKSHADES_MISC_H #include #include #include #include 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; }; struct ModelData { struct { struct { float x, y, z; } *ptr; size_t len; } vertices; struct { struct { short v[3]; float r, g, b; } *ptr; size_t len; } faces; }; struct MuscleData { 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*); ModelData loadModel(const char*); void loadMuscles(MuscleData*); ALuint loadSound(const char*); GLuint loadTexture(const char*); void playSound(ALuint source, ALfloat x, ALfloat y, ALfloat z); #ifdef __cplusplus } // extern "C" #endif // __cplusplus #endif // BLACKSHADES_MISC_H