X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=types.h;fp=types.h;h=197eb03f12ae0f8658a2c9a628bb9a3a2aef578c;hp=573418d241b3f2d55e45a9f479580adb84334820;hb=ae7da963e8c91eb4463b8c9f60d0b82c4a2155ce;hpb=ce19686e699c3fb014add29642c23ed17586fa88 diff --git a/types.h b/types.h index 573418d..197eb03 100644 --- a/types.h +++ b/types.h @@ -34,10 +34,20 @@ typedef struct { GLubyte *rgbData; // Array of bytes with the colour data for the texture } texture; + +typedef GLfloat vector[3]; // Vector datatyle + +typedef struct { + GLfloat parameter; // Transform amount + vector* vect; // Transform vector +} transform; + typedef struct { - // You'll need to add scale, rotation, material, mesh number, etc., - // to this structure - float x,y,z; + int mesh; // Mesh index number + int texture; // Texture index number + float x,y,z; // Scene position + vector* scale; // Scale vector + transform rotation; // Rotation transformation } SceneObject; // Menu enum