solstice-anim

Geometry animation library of the solstice app
git clone git://git.meso-star.com/solstice-anim.git
Log | Files | Refs | README | LICENSE

commit 788b0093a4c48b335b4379b445a58c285323225e
parent b81af87432fc655a9f24ca906ac9e153f421dd77
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Wed,  2 Nov 2016 19:08:59 +0100

Fix previous commit.

Diffstat:
Msrc/test_sanim_node_transform.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/test_sanim_node_transform.c b/src/test_sanim_node_transform.c @@ -30,6 +30,11 @@ main(int argc, char** argv) mem_init_proxy_allocator(&allocator, &mem_default_allocator); /* test a typical use in my_type */ + CHECK(my_type_init(&allocator, &t1), RES_OK); + CHECK(my_type_init(&allocator, &t2), RES_OK); + + CHECK(my_type_add_child(&t1, &t2), RES_OK); + d3_splat(transl, +1); CHECK(my_type_set_translation(&t1, transl), RES_OK); @@ -41,6 +46,8 @@ main(int argc, char** argv) CHECK(d3_is_zero(transform + 9), 1); d3(rot, PI, 0, 0); + CHECK(my_type_set_rotations(NULL, rot), RES_BAD_ARG); + CHECK(my_type_set_rotations(&t1, NULL), RES_BAD_ARG); CHECK(my_type_set_rotations(&t1, rot), RES_OK); CHECK(my_type_set_rotations(&t2, rot), RES_OK); d3(transl, 0, +1, 0);