summaryrefslogtreecommitdiff
path: root/legacy/ephysics/doc
diff options
context:
space:
mode:
authorRicardo de Almeida Gonzaga <ricardo@profusion.mobi>2012-09-21 17:01:59 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-09-21 17:01:59 +0000
commit8ac96ab8e7ae168c062a1b1d7c79b56444a13edd (patch)
tree1ebaa28553e7115858be28a109123b380c16e63a /legacy/ephysics/doc
parent85b32d701e53086f8be72b0abd4d80b535d5e2bd (diff)
ephysics: add a new example doc: Growing Balls -
test_growing_balls.c Patch by: Ricardo de Almeida Gonzaga <ricardo@profusion.mobi> SVN revision: 76976
Diffstat (limited to 'legacy/ephysics/doc')
-rw-r--r--legacy/ephysics/doc/examples.dox64
1 files changed, 64 insertions, 0 deletions
diff --git a/legacy/ephysics/doc/examples.dox b/legacy/ephysics/doc/examples.dox
index 1cea186290..6beaa6b056 100644
--- a/legacy/ephysics/doc/examples.dox
+++ b/legacy/ephysics/doc/examples.dox
@@ -11,6 +11,7 @@
11 * @li @ref tutorial_ephysics_delete_body 11 * @li @ref tutorial_ephysics_delete_body
12 * @li @ref tutorial_ephysics_constraint 12 * @li @ref tutorial_ephysics_constraint
13 * @li @ref tutorial_ephysics_forces 13 * @li @ref tutorial_ephysics_forces
14 * @li @ref tutorial_ephysics_growing_balls
14 * @li @ref tutorial_ephysics_gravity 15 * @li @ref tutorial_ephysics_gravity
15 * @li @ref tutorial_ephysics_velocity 16 * @li @ref tutorial_ephysics_velocity
16 * @li @ref tutorial_ephysics_shapes 17 * @li @ref tutorial_ephysics_shapes
@@ -817,6 +818,69 @@
817 */ 818 */
818 819
819 /** 820 /**
821 * @page tutorial_ephysics_growing_balls EPhysics - Growing Balls
822 *
823 * The purpose of this example is to demonstrate the dynamically growing
824 * and shrinking of an EPhysics_Body - The code applies the growth of a ball
825 * and the shrink of another.
826 *
827 * For this example we'll have an EPhysics_World and three EPhysics_Bodys
828 * with different sizes associated with an evas_object.
829 *
830 * The basic concepts like - defining an EPhysics_World, render geometry,
831 * physics limiting boundaries, add an EPhysics_Body, associate it to evas
832 * objects, change restitution, friction and impulse properties, were
833 * already covered in
834 * @ref tutorial_ephysics_bouncing_ball
835 *
836 * @section add-growshrink Adding the growing/shrinking
837 * @dontinclude test_growing_balls.c
838 *
839 * In this example we'll use a timer to handle the callback function.
840 *
841 * @skipline test_data->data = ecore_timer_add
842 *
843 * In this callback, we'll pass through a list with 3 balls and apply the
844 * growth and the shrink between the limit we'll set. Note that the variable
845 * i recieves different values on each iteration (-1, 0, 1). For the first
846 * iteration it will decrease the size variable, the second will keep the
847 * same value, and the last one will increase the size variable.
848 *
849 * @dontinclude test_growing_balls.c
850 *
851 * @skip _grow_cb(void *data
852 * @until return EINA_TRUE;
853 * @skipline }
854 *
855 * Here we finish the example. The full source code can be found at
856 * @ref test_growing_balls_c.
857 *
858 */
859
860 /**
861 * @page test_growing_balls_c test_growing_balls.c
862 *
863 * @section ephysics-test-h ephysics_test.h
864 * @include ephysics_test.h
865 *
866 * @section test-growing-balls-c test_growing_balls.c
867 * @dontinclude test.c
868 *
869 * @skip test_clean
870 * @until }
871 *
872 * @skip test_data_new
873 * @until }
874 *
875 * @skip test_win_add
876 * @until }
877 *
878 * @include test_growing_balls.c
879 *
880 * @example test_growing_balls.c
881 */
882
883 /**
820 * @page tutorial_ephysics_gravity EPhysics - Gravity 884 * @page tutorial_ephysics_gravity EPhysics - Gravity
821 * 885 *
822 * The purpose of this example is to demonstrate the EPhysics Gravity usage - 886 * The purpose of this example is to demonstrate the EPhysics Gravity usage -