X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=types.h;h=0d7110ec7993b557ded132674eb64a0b9ebb38b3;hp=be7c1e43798c9d42c291d5e5c8a323964a042cae;hb=79a4c3340f8047ceb74fa5396caa899b3bf79276;hpb=4907cd758a8f2d227b76fb82e557487b1197d0be diff --git a/types.h b/types.h index be7c1e4..0d7110e 100644 --- a/types.h +++ b/types.h @@ -35,14 +35,18 @@ typedef struct { } texture; typedef struct { - GLfloat amount; // Transform amount - GLfloat vector[3]; // Transform vector + GLfloat x, y, z; // Amount of rotation on axis } transform; +typedef struct { + int id; + GLfloat scale; +} texturedat; + typedef struct { int mesh; // Mesh index number - int texture; // Texture index number - float x,y,z; // Scene position + texturedat texture; // Texture index number + GLfloat x,y,z; // Scene position GLfloat scale[3]; // Scale vector transform rotation; // Rotation transformation } SceneObject;