diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-02-25 01:26:14 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-02-25 02:08:51 -0500 |
commit | 21794278ae305acd5dc13d0cd6a491f420b69880 (patch) | |
tree | f25daf8feacac6aa0c0645de8f8e33f3df2d9d93 /tests/libdimension | |
parent | ac2890f762db13b35b1f8bd37b0c07855a21c9d8 (diff) | |
download | dimension-21794278ae305acd5dc13d0cd6a491f420b69880.tar.xz |
New dmnsn_interior* type.
Diffstat (limited to 'tests/libdimension')
-rw-r--r-- | tests/libdimension/tests.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/libdimension/tests.c b/tests/libdimension/tests.c index 15c5967..d8d1dd9 100644 --- a/tests/libdimension/tests.c +++ b/tests/libdimension/tests.c @@ -124,7 +124,19 @@ dmnsn_new_default_scene() return NULL; } - cube->texture->finish = dmnsn_new_reflective_finish(dmnsn_white, dmnsn_white, 1.0); + cube->texture->finish = dmnsn_new_reflective_finish(dmnsn_white, dmnsn_white, + 1.0); + if (!cube->texture->finish) { + dmnsn_delete_scene(scene); + return NULL; + } + + cube->interior = dmnsn_new_interior(); + if (!cube->interior) { + dmnsn_delete_scene(scene); + return NULL; + } + cube->interior->ior = 1.3; cube->trans = dmnsn_rotation_matrix(dmnsn_new_vector(0.75, 0.0, 0.0)); |