31 lines
561 B
C
31 lines
561 B
C
#ifndef DEMO_UTILS_H
|
|
#define DEMO_UTILS_H 1
|
|
|
|
#include <GL4D/gl4duw_SDL2.h>
|
|
#include <string.h>
|
|
|
|
// 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 (fly)
|
|
*
|
|
* `-y` => movement to bottom (sink)
|
|
*
|
|
* `+z` => move closer
|
|
*
|
|
* `-z` => move away */
|
|
void move(GLfloat x, GLfloat y, GLfloat z);
|
|
|
|
/* Rotate a vector XYZ */
|
|
void rotate_vec(GLfloat *, GLfloat);
|
|
|
|
#endif
|