diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-06-03 23:27:54 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-06-03 23:27:54 -0600 |
commit | f0e6133c246b5a4fe5f4c69b9d7b755581f41dcb (patch) | |
tree | 8a1bca3437bff3c16196e7065fccfa3e5add51c1 /libdimension/dimension | |
parent | 8863129c6e7e57b7c4ca3fce5fece9aae8a9b7b7 (diff) | |
download | dimension-f0e6133c246b5a4fe5f4c69b9d7b755581f41dcb.tar.xz |
Add refcounts to textures and interiors.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r-- | libdimension/dimension/interior.h | 3 | ||||
-rw-r--r-- | libdimension/dimension/texture.h | 3 |
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(); |