diff --git a/moteur.h b/moteur.h index ad80835..f11768c 100644 --- a/moteur.h +++ b/moteur.h @@ -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);