GLubyte *rgbData; // Array of bytes with the colour data for the texture
} texture;
-
-typedef GLfloat vector[3]; // Vector datatype
-
typedef struct {
- GLfloat parameter; // Transform amount
- vector* vect; // 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
- vector* scale; // Scale vector
+ texturedat texture; // Texture index number
+ GLfloat x,y,z; // Scene position
+ GLfloat scale[3]; // Scale vector
transform rotation; // Rotation transformation
} SceneObject;