This repository has been archived on 2023-05-27. You can view files and clone it, but cannot push or open issues or pull requests.
api8/includes/utils.h
2023-05-12 13:49:33 +02:00

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