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

29 lines
479 B
C
Raw Normal View History

2023-05-08 13:10:39 +02:00
#ifndef DEMO_UTILS_H
#define DEMO_UTILS_H 1
2023-05-08 14:35:36 +02:00
#include <GL4D/gl4duw_SDL2.h>
2023-05-12 16:00:17 +02:00
#include <string.h>
2023-05-08 13:10:39 +02:00
// Récupère un delta-temps
2023-05-08 13:41:32 +02:00
double get_dt(double *, GLboolean);
2023-05-08 13:10:39 +02:00
2023-05-08 14:35:36 +02:00
// Bind and load a matrix
void bindAndLoadf(const char *name);
2023-05-12 13:49:33 +02:00
/* Move something in space
*
* +x = movement to right
*
* -x = movement to left
*
2023-05-12 16:00:17 +02:00
* +y = movement to top (fly)
2023-05-12 13:49:33 +02:00
*
2023-05-12 16:00:17 +02:00
* -y = movement to bottom (sink)
2023-05-12 13:49:33 +02:00
*
* +z = move closer
*
* -z = move away */
2023-05-12 16:42:51 +02:00
void move(GLfloat x, GLfloat y, GLfloat z);
2023-05-12 13:49:33 +02:00
2023-05-08 13:10:39 +02:00
#endif