From bcf65bd050d9fbe364a60ab7ec0221539ca2c2af Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 12 Jul 2009 21:17:12 +0000 Subject: Begin dmnsn_texture* type. --- libdimension/dimension/object.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libdimension/dimension/object.h') 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 */ -- cgit v1.2.3