29 lines
522 B
C
29 lines
522 B
C
#ifndef DEMO_UTILS_H
|
|
#define DEMO_UTILS_H 1
|
|
|
|
#include <GL4D/gl4duw_SDL2.h>
|
|
|
|
enum Movement { TETE, CORPS, JAMBE_G, JAMBE_D, BRAS_G, BRAS_D };
|
|
|
|
// Récupère un delta-temps
|
|
double get_dt(double *, GLboolean);
|
|
|
|
// Bind and load a matrix
|
|
void bindAndLoadf(const char *name);
|
|
|
|
/* Move something in space
|
|
*
|
|
* +x = movement to right
|
|
*
|
|
* -x = movement to left
|
|
*
|
|
* +y = movement to top
|
|
*
|
|
* -y = movement to bottom
|
|
*
|
|
* +z = move closer
|
|
*
|
|
* -z = move away */
|
|
void move(GLfloat x, GLfloat y, GLfloat z, int type);
|
|
|
|
#endif
|