diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-06-04 10:15:21 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-06-04 10:15:21 -0600 |
commit | 4a2dd35a34d456b9164e90b4fb1a06b1d009869f (patch) | |
tree | a896e926bebae2e1a64b341b800169f1224df359 /libdimension/object.c | |
parent | ca7780971fe39c8a7e0e867e0d8bd9f3b5a21e33 (diff) | |
download | dimension-4a2dd35a34d456b9164e90b4fb1a06b1d009869f.tar.xz |
Rename `precompute' to `init'.
Diffstat (limited to 'libdimension/object.c')
-rw-r--r-- | libdimension/object.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libdimension/object.c b/libdimension/object.c index acc0163..a714f6e 100644 --- a/libdimension/object.c +++ b/libdimension/object.c @@ -37,11 +37,11 @@ dmnsn_object * dmnsn_new_object() { dmnsn_object *object = dmnsn_malloc(sizeof(dmnsn_object)); - object->texture = NULL; - object->interior = NULL; - object->trans = dmnsn_identity_matrix(); - object->precompute_fn = NULL; - object->free_fn = NULL; + object->texture = NULL; + object->interior = NULL; + object->trans = dmnsn_identity_matrix(); + object->init_fn = NULL; + object->free_fn = NULL; return object; } @@ -61,10 +61,10 @@ dmnsn_delete_object(dmnsn_object *object) /* Precompute object properties */ void -dmnsn_object_precompute(dmnsn_object *object) +dmnsn_object_init(dmnsn_object *object) { - if (object->precompute_fn) { - (*object->precompute_fn)(object); + if (object->init_fn) { + (*object->init_fn)(object); } object->bounding_box @@ -74,6 +74,6 @@ dmnsn_object_precompute(dmnsn_object *object) if (object->texture) { object->texture->trans = dmnsn_matrix_mul(object->trans, object->texture->trans); - dmnsn_texture_precompute(object->texture); + dmnsn_texture_init(object->texture); } } |