summary refs log tree commit diff
path: root/src/misc.h
blob: efe575a1206003d7b08de9f55352e946fbc4f1e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef BLACKSHADES_MISC_H
#define BLACKSHADES_MISC_H

#include <stdbool.h>

#include <AL/al.h>
#include <GL/gl.h>

struct JointData {
    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;
};

#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
	void loadJoints(JointData*);
	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