summaryrefslogtreecommitdiffstats
path: root/libdimension/bench/triangle.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-06-04 14:56:30 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-06-04 14:58:32 -0400
commit13779f79f41e8bce483e98faa6353c07c12563c8 (patch)
tree32e9daa27f7eb687eb60692529179fb75124f976 /libdimension/bench/triangle.c
parent36e399810a25d5d3a41570ee0f52f8e6d1402fbc (diff)
downloaddimension-13779f79f41e8bce483e98faa6353c07c12563c8.tar.xz
triangles: Better API.
Diffstat (limited to 'libdimension/bench/triangle.c')
-rw-r--r--libdimension/bench/triangle.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libdimension/bench/triangle.c b/libdimension/bench/triangle.c
index 39b9322..297417c 100644
--- a/libdimension/bench/triangle.c
+++ b/libdimension/bench/triangle.c
@@ -32,12 +32,12 @@ main(void)
dmnsn_pool *pool = dmnsn_new_pool();
- dmnsn_object *triangle = dmnsn_new_flat_triangle(
- pool,
+ dmnsn_vector vertices[] = {
dmnsn_new_vector(1.0, 0.0, 0.0),
dmnsn_new_vector(2.0, 2.0, 1.0),
- dmnsn_new_vector(3.0, 0.0, 2.0)
- );
+ dmnsn_new_vector(3.0, 0.0, 2.0),
+ };
+ dmnsn_object *triangle = dmnsn_new_triangle(pool, vertices);
triangle->texture = dmnsn_new_texture(pool);
triangle->texture->pigment = dmnsn_new_pigment(pool);
dmnsn_object_initialize(triangle);