summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension/object.h
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/dimension/object.h')
-rw-r--r--libdimension/dimension/object.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libdimension/dimension/object.h b/libdimension/dimension/object.h
index 314a543..2da3ac7 100644
--- a/libdimension/dimension/object.h
+++ b/libdimension/dimension/object.h
@@ -35,8 +35,7 @@ typedef int dmnsn_object_inside_fn(const dmnsn_object *object,
dmnsn_vector point);
struct dmnsn_object {
- /* Generic pointer for object info */
- void *ptr;
+ dmnsn_texture *texture;
/* Transformation matrix */
dmnsn_matrix trans;
@@ -44,6 +43,9 @@ struct dmnsn_object {
/* Callback functions */
dmnsn_object_intersections_fn *intersections_fn;
dmnsn_object_inside_fn *inside_fn;
+
+ /* Generic pointer for object info */
+ void *ptr;
};
/* Allocate a dummy object */