summaryrefslogtreecommitdiffstats
path: root/libdimension/texture.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-06-04 10:15:21 -0600
committerTavian Barnes <tavianator@gmail.com>2010-06-04 10:15:21 -0600
commit4a2dd35a34d456b9164e90b4fb1a06b1d009869f (patch)
treea896e926bebae2e1a64b341b800169f1224df359 /libdimension/texture.c
parentca7780971fe39c8a7e0e867e0d8bd9f3b5a21e33 (diff)
downloaddimension-4a2dd35a34d456b9164e90b4fb1a06b1d009869f.tar.xz
Rename `precompute' to `init'.
Diffstat (limited to 'libdimension/texture.c')
-rw-r--r--libdimension/texture.c6
1 files changed, 3 insertions, 3 deletions
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);
}
}