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/scene.c | |
parent | e9810a7b1aae15320e58371b657a2f963562834d (diff) | |
download | dimension-8e3a7158ecae541692826e7b5998c8ffc810173a.tar.xz |
Make API more consistent.
Object methods should be dmnsn_<object>_<fn>().
Diffstat (limited to 'libdimension/scene.c')
-rw-r--r-- | libdimension/scene.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libdimension/scene.c b/libdimension/scene.c index cd8587f..3e3a9f2 100644 --- a/libdimension/scene.c +++ b/libdimension/scene.c @@ -76,7 +76,7 @@ dmnsn_delete_scene(dmnsn_scene *scene) } void -dmnsn_initialize_scene(dmnsn_scene *scene) +dmnsn_scene_initialize(dmnsn_scene *scene) { dmnsn_assert(!scene->initialized, "Scene double-initialized."); scene->initialized = true; @@ -88,13 +88,13 @@ dmnsn_initialize_scene(dmnsn_scene *scene) scene->outer_height = scene->canvas->height; } - dmnsn_initialize_pigment(scene->background); + dmnsn_pigment_initialize(scene->background); - dmnsn_initialize_texture(scene->default_texture); + dmnsn_texture_initialize(scene->default_texture); DMNSN_ARRAY_FOREACH (dmnsn_object **, object, scene->objects) { dmnsn_texture_cascade(scene->default_texture, &(*object)->texture); dmnsn_interior_cascade(scene->default_interior, &(*object)->interior); - dmnsn_initialize_object(*object); + dmnsn_object_initialize(*object); } } |