new structure object_t

It contains a surface, an ID (star=0, planet=1, moon=2) and its params.
This commit is contained in:
Volodymyr Patuta 2021-01-02 23:08:47 +01:00
parent 82ad5010fd
commit 93afaab0c3

View File

@ -29,7 +29,7 @@ extern "C" {
typedef struct vertex_t vertex_t;
typedef struct triangle_t triangle_t;
typedef struct surface_t surface_t;
typedef struct object_t object_t;
/*!\brief états pour les sommets ou les triangles */
enum pstate_t {
PS_NONE = 0,
@ -124,6 +124,12 @@ extern "C" {
void (*shadingfunc)(surface_t *, GLuint *, vertex_t *);
};
struct object_t {
int id;
surface_t * s;
float vars[10];
};
/* dans primitives.c */
extern void transform_n_raster(surface_t * s, float * mvMat, float * projMat);
extern void clearDepth(void);