X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=types.h;h=be7c1e43798c9d42c291d5e5c8a323964a042cae;hp=197eb03f12ae0f8658a2c9a628bb9a3a2aef578c;hb=99056f711c30745dd12a2be3675580363df3f874;hpb=ae7da963e8c91eb4463b8c9f60d0b82c4a2155ce;ds=sidebyside diff --git a/types.h b/types.h index 197eb03..be7c1e4 100644 --- a/types.h +++ b/types.h @@ -34,19 +34,16 @@ 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 + GLfloat amount; // Transform amount + GLfloat vector[3]; // Transform vector } transform; typedef struct { int mesh; // Mesh index number int texture; // Texture index number float x,y,z; // Scene position - vector* scale; // Scale vector + GLfloat scale[3]; // Scale vector transform rotation; // Rotation transformation } SceneObject; @@ -75,5 +72,11 @@ enum menu { M_LIGHT_RGBALL_LIGHT_2 }; -#endif /* TYPES_H */ +// Manipulation states +enum manipulateStates { + STATE_CAMERA_ROTATE_MOVE, + STATE_OBJECT_POSITION_SCALE, + STATE_OBJECT_ROTATION_TEXTURE_SCALE +}; +#endif /* TYPES_H */ \ No newline at end of file