diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-10-19 13:59:24 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-10-30 18:11:22 -0400 |
commit | 8e3a7158ecae541692826e7b5998c8ffc810173a (patch) | |
tree | beda4f9f8604f77d0513d5fb02b7ddf53d203d09 /libdimension/texture.c | |
parent | e9810a7b1aae15320e58371b657a2f963562834d (diff) | |
download | dimension-8e3a7158ecae541692826e7b5998c8ffc810173a.tar.xz |
Make API more consistent.
Object methods should be dmnsn_<object>_<fn>().
Diffstat (limited to 'libdimension/texture.c')
-rw-r--r-- | libdimension/texture.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdimension/texture.c b/libdimension/texture.c index fabe578..3018bcd 100644 --- a/libdimension/texture.c +++ b/libdimension/texture.c @@ -23,7 +23,7 @@ * Textures. */ -#include "dimension.h" +#include "dimension-internal.h" /* Allocate a dummy texture */ dmnsn_texture * @@ -51,7 +51,7 @@ dmnsn_delete_texture(dmnsn_texture *texture) /* Calculate matrix inverses */ void -dmnsn_initialize_texture(dmnsn_texture *texture) +dmnsn_texture_initialize(dmnsn_texture *texture) { dmnsn_assert(!texture->initialized, "Texture double-initialized."); texture->initialized = true; @@ -61,7 +61,7 @@ dmnsn_initialize_texture(dmnsn_texture *texture) if (!texture->pigment->initialized) { texture->pigment->trans = dmnsn_matrix_mul(texture->trans, texture->pigment->trans); - dmnsn_initialize_pigment(texture->pigment); + dmnsn_pigment_initialize(texture->pigment); } } |