summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/dimension')
-rw-r--r--libdimension/dimension/interior.h3
-rw-r--r--libdimension/dimension/texture.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/libdimension/dimension/interior.h b/libdimension/dimension/interior.h
index 0ab4a30..69a0fcb 100644
--- a/libdimension/dimension/interior.h
+++ b/libdimension/dimension/interior.h
@@ -34,6 +34,9 @@ typedef struct dmnsn_interior {
/* Generic pointer */
void *ptr;
+
+ /* Reference count */
+ unsigned int *refcount;
} dmnsn_interior;
dmnsn_interior *dmnsn_new_interior();
diff --git a/libdimension/dimension/texture.h b/libdimension/dimension/texture.h
index ce15742..9c5fae1 100644
--- a/libdimension/dimension/texture.h
+++ b/libdimension/dimension/texture.h
@@ -102,6 +102,9 @@ typedef struct {
/* Transformation matrix */
dmnsn_matrix trans, trans_inv;
+
+ /* Reference count */
+ unsigned int *refcount;
} dmnsn_texture;
dmnsn_texture *dmnsn_new_texture();