diff options
Diffstat (limited to 'libdimension/bench')
-rw-r--r-- | libdimension/bench/triangle.c | 8 |
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); |