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/tests/render.c | |
parent | e9810a7b1aae15320e58371b657a2f963562834d (diff) | |
download | dimension-8e3a7158ecae541692826e7b5998c8ffc810173a.tar.xz |
Make API more consistent.
Object methods should be dmnsn_<object>_<fn>().
Diffstat (limited to 'libdimension/tests/render.c')
-rw-r--r-- | libdimension/tests/render.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libdimension/tests/render.c b/libdimension/tests/render.c index af22691..ae4a644 100644 --- a/libdimension/tests/render.c +++ b/libdimension/tests/render.c @@ -94,7 +94,7 @@ dmnsn_test_scene_add_background(dmnsn_scene *scene) fprintf(stderr, "--- WARNING: Couldn't open or read png2.png! ---\n"); png_pigment = dmnsn_new_solid_pigment(dmnsn_orange); } - dmnsn_add_map_entry(sky_gradient_pigment_map, 0.0, &png_pigment); + dmnsn_map_add_entry(sky_gradient_pigment_map, 0.0, &png_pigment); dmnsn_color background = dmnsn_color_from_sRGB( dmnsn_new_color5(0.0, 0.1, 0.2, 0.1, 0.0) @@ -269,7 +269,7 @@ dmnsn_test_scene_add_ground(dmnsn_scene *scene) dmnsn_scale_matrix(dmnsn_new_vector(1.0/3.0, 1.0/3.0, 1.0/3.0)); dmnsn_map *big_map = dmnsn_new_pigment_map(); dmnsn_pigment_map_add_color(big_map, 0.0, dmnsn_white); - dmnsn_add_map_entry(big_map, 1.0, &small_pigment); + dmnsn_map_add_entry(big_map, 1.0, &small_pigment); plane->texture = dmnsn_new_texture(); plane->texture->pigment = dmnsn_new_pigment_map_pigment(checker2, big_map, DMNSN_PIGMENT_MAP_REGULAR); @@ -339,7 +339,7 @@ main(void) } } - dmnsn_clear_canvas(scene->canvas, dmnsn_black); + dmnsn_canvas_clear(scene->canvas, dmnsn_black); /* Create a new glX display */ dmnsn_display *display = NULL; @@ -353,7 +353,7 @@ main(void) /* Render the scene */ printf("Rendering scene\n"); - dmnsn_future *future = dmnsn_raytrace_scene_async(scene); + dmnsn_future *future = dmnsn_ray_trace_async(scene); /* Display the scene as it's rendered */ if (display) { |