From 4a2dd35a34d456b9164e90b4fb1a06b1d009869f Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 4 Jun 2010 10:15:21 -0600 Subject: Rename `precompute' to `init'. --- libdimension/texture.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libdimension/texture.c') diff --git a/libdimension/texture.c b/libdimension/texture.c index 93279bb..0ca5b98 100644 --- a/libdimension/texture.c +++ b/libdimension/texture.c @@ -45,7 +45,7 @@ dmnsn_delete_pigment(dmnsn_pigment *pigment) /* Precompute pigment properties */ void -dmnsn_pigment_precompute(dmnsn_pigment *pigment) +dmnsn_pigment_init(dmnsn_pigment *pigment) { pigment->trans_inv = dmnsn_matrix_inverse(pigment->trans); } @@ -106,12 +106,12 @@ dmnsn_delete_texture(dmnsn_texture *texture) /* Calculate matrix inverses */ void -dmnsn_texture_precompute(dmnsn_texture *texture) +dmnsn_texture_init(dmnsn_texture *texture) { texture->trans_inv = dmnsn_matrix_inverse(texture->trans); if (texture->pigment) { texture->pigment->trans = dmnsn_matrix_mul(texture->trans, texture->pigment->trans); - dmnsn_pigment_precompute(texture->pigment); + dmnsn_pigment_init(texture->pigment); } } -- cgit v1.2.3