summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/ephysics/EPhysics.h (renamed from legacy/ephysics/src/lib/EPhysics.h)61
-rw-r--r--src/lib/ephysics/ephysics_body.cpp (renamed from legacy/ephysics/src/lib/ephysics_body.cpp)22
-rw-r--r--src/lib/ephysics/ephysics_body_materials.h (renamed from legacy/ephysics/src/lib/ephysics_body_materials.h)0
-rw-r--r--src/lib/ephysics/ephysics_camera.cpp (renamed from legacy/ephysics/src/lib/ephysics_camera.cpp)2
-rw-r--r--src/lib/ephysics/ephysics_constraints.cpp (renamed from legacy/ephysics/src/lib/ephysics_constraints.cpp)0
-rw-r--r--src/lib/ephysics/ephysics_main.cpp (renamed from legacy/ephysics/src/lib/ephysics_main.cpp)0
-rw-r--r--src/lib/ephysics/ephysics_private.h (renamed from legacy/ephysics/src/lib/ephysics_private.h)0
-rw-r--r--src/lib/ephysics/ephysics_quaternion.cpp (renamed from legacy/ephysics/src/lib/ephysics_quaternion.cpp)0
-rw-r--r--src/lib/ephysics/ephysics_shape.cpp (renamed from legacy/ephysics/src/lib/ephysics_shape.cpp)4
-rw-r--r--src/lib/ephysics/ephysics_trimesh.h (renamed from legacy/ephysics/src/lib/ephysics_trimesh.h)0
-rw-r--r--src/lib/ephysics/ephysics_world.cpp (renamed from legacy/ephysics/src/lib/ephysics_world.cpp)6
11 files changed, 59 insertions, 36 deletions
diff --git a/legacy/ephysics/src/lib/EPhysics.h b/src/lib/ephysics/EPhysics.h
index e7fc6a8f04..90ea09f046 100644
--- a/legacy/ephysics/src/lib/EPhysics.h
+++ b/src/lib/ephysics/EPhysics.h
@@ -2,12 +2,18 @@
2#define EPHYSICS_H 2#define EPHYSICS_H
3 3
4/** 4/**
5 * @mainpage EPhysics Library Documentation 5 * @page ephysics_main EPhysics
6 * 6 *
7 * @version 0.1.0 7 * @date 2012 (created)
8 * @date 2012
9 * 8 *
10 * @section intro What is EPhysics ? 9 * @section toc Table of Contents
10 *
11 * @li @ref ephysics_main_intro
12 * @li @ref ephysics_main_compiling
13 * @li @ref ephysics_main_next_steps
14 * @li @ref ephysics_main_intro_example
15 *
16 * @section ephysics_main_intro Introduction
11 * 17 *
12 * EPhysics is a library that makes it easy to use Ecore, Evas and Bullet 18 * EPhysics is a library that makes it easy to use Ecore, Evas and Bullet
13 * Physics together. It's a kind of wrapper, a glue, between these libraries. 19 * Physics together. It's a kind of wrapper, a glue, between these libraries.
@@ -16,7 +22,33 @@
16 * @image html diagram_ephysics.png 22 * @image html diagram_ephysics.png
17 * @image latex diagram_ephysics.eps 23 * @image latex diagram_ephysics.eps
18 * 24 *
19 * For a better reference, check the following groups: 25 * @section ephysics_main_compiling How to compile
26 *
27 * Ephysics is a library your application links to. The procedure for this is
28 * very simple. You simply have to compile your application with the
29 * appropriate compiler flags that the @c pkg-config script outputs. For
30 * example:
31 *
32 * Compiling C or C++ files into object files:
33 *
34 * @verbatim
35 gcc -c -o main.o main.c `pkg-config --cflags ephysics`
36 @endverbatim
37 *
38 * Linking object files into a binary executable:
39 *
40 * @verbatim
41 gcc -o my_application main.o `pkg-config --libs ephysics`
42 @endverbatim
43 *
44 * See @ref pkgconfig
45 *
46 * @section ephysics_main_next_steps Next Steps
47 *
48 * After you understood what EPhysics is and installed it in your system
49 * you should proceed understanding the programming interface.
50 *
51 * Recommended reading:
20 * @li @ref EPhysics 52 * @li @ref EPhysics
21 * @li @ref EPhysics_World 53 * @li @ref EPhysics_World
22 * @li @ref EPhysics_Body 54 * @li @ref EPhysics_Body
@@ -25,20 +57,11 @@
25 * @li @ref EPhysics_Quaternion 57 * @li @ref EPhysics_Quaternion
26 * @li @ref EPhysics_Shape 58 * @li @ref EPhysics_Shape
27 * 59 *
28 * Please see the @ref authors page for contact details. 60 * @section ephysics_main_intro_example Introductory Example
29 */
30
31/**
32 *
33 * @page authors Authors
34 *
35 * @author Bruno Dilly <bdilly@@profusion.mobi>
36 * @author Leandro Dorileo <dorileo@@profusion.mobi>
37 * @author Ricardo de Almeida Gonzaga <ricardo@@profusion.mobi>
38 * 61 *
39 * Please contact <enlightenment-devel@lists.sourceforge.net> to get in 62 * @include test_bouncing_ball.c
40 * contact with the developers and maintainers.
41 * 63 *
64 * More examples can be found at @ref ephysics_examples.
42 */ 65 */
43 66
44#include <Evas.h> 67#include <Evas.h>
@@ -82,8 +105,8 @@ extern "C" {
82 */ 105 */
83 106
84/** 107/**
85 * @brief How to initialize EPhysics. 108 * @brief Physics simulation integration and visual effects.
86 * @defgroup EPhysics Top Level API available to add physics effects. 109 * @defgroup EPhysics EPhysics
87 * 110 *
88 * @{ 111 * @{
89 * 112 *
diff --git a/legacy/ephysics/src/lib/ephysics_body.cpp b/src/lib/ephysics/ephysics_body.cpp
index 98d8fce79d..eddfbfbee9 100644
--- a/legacy/ephysics/src/lib/ephysics_body.cpp
+++ b/src/lib/ephysics/ephysics_body.cpp
@@ -333,7 +333,7 @@ ephysics_body_soft_body_slice_index_get(EPhysics_Body *body, Evas_Object *slice)
333} 333}
334 334
335static void 335static void
336_ephysics_body_soft_body_slice_del_cb(void *data, Evas *evas __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__) 336_ephysics_body_soft_body_slice_del_cb(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
337{ 337{
338 EPhysics_Body_Soft_Body_Slice *slice = (EPhysics_Body_Soft_Body_Slice *)data; 338 EPhysics_Body_Soft_Body_Slice *slice = (EPhysics_Body_Soft_Body_Slice *)data;
339 slice->evas_obj = NULL; 339 slice->evas_obj = NULL;
@@ -882,7 +882,7 @@ err_body:
882} 882}
883 883
884static void 884static void
885_ephysics_body_evas_obj_del_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 885_ephysics_body_evas_obj_del_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
886{ 886{
887 EPhysics_Body *body = (EPhysics_Body *) data; 887 EPhysics_Body *body = (EPhysics_Body *) data;
888 888
@@ -1197,7 +1197,7 @@ _ephysics_body_move(EPhysics_Body *body, Evas_Coord x, Evas_Coord y, Evas_Coord
1197} 1197}
1198 1198
1199static void 1199static void
1200_ephysics_body_evas_obj_resize_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__) 1200_ephysics_body_evas_obj_resize_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
1201{ 1201{
1202 EPhysics_Body *body = (EPhysics_Body *) data; 1202 EPhysics_Body *body = (EPhysics_Body *) data;
1203 int w, h; 1203 int w, h;
@@ -1222,7 +1222,7 @@ _ephysics_body_evas_obj_resize_cb(void *data, Evas *e __UNUSED__, Evas_Object *o
1222} 1222}
1223 1223
1224 static void 1224 static void
1225_ephysics_body_soft_body_evas_restack_cb(void *data, Evas *evas __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__) 1225_ephysics_body_soft_body_evas_restack_cb(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
1226{ 1226{
1227 EPhysics_Body *body = (EPhysics_Body *)data; 1227 EPhysics_Body *body = (EPhysics_Body *)data;
1228 Eina_List *slices; 1228 Eina_List *slices;
@@ -1404,7 +1404,7 @@ _ephysics_body_evas_obj_map_apply(EPhysics_Body *body, Evas_Map *map, Evas_Objec
1404} 1404}
1405 1405
1406static void 1406static void
1407_ephysics_cloth_face_objs_update(EPhysics_Body *body __UNUSED__) 1407_ephysics_cloth_face_objs_update(EPhysics_Body *body EINA_UNUSED)
1408{ 1408{
1409 1409
1410} 1410}
@@ -4506,7 +4506,7 @@ ephysics_body_clockwise_get(const EPhysics_Body *body)
4506} 4506}
4507 4507
4508static void 4508static void
4509_ephysics_body_face_obj_del_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__) 4509_ephysics_body_face_obj_del_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
4510{ 4510{
4511 EPhysics_Body *body = (EPhysics_Body *) data; 4511 EPhysics_Body *body = (EPhysics_Body *) data;
4512 EPhysics_Body_Face_Obj *face_obj; 4512 EPhysics_Body_Face_Obj *face_obj;
@@ -4574,7 +4574,7 @@ _ephysics_body_face_evas_object_add(EPhysics_Body *body, EPhysics_Body_Face face
4574} 4574}
4575 4575
4576static void 4576static void
4577_ephysics_body_box_face_obj_resize_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__) 4577_ephysics_body_box_face_obj_resize_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
4578{ 4578{
4579 EPhysics_Body_Face face = EPHYSICS_BODY_FACE_LAST; 4579 EPhysics_Body_Face face = EPHYSICS_BODY_FACE_LAST;
4580 EPhysics_Body *body = (EPhysics_Body *) data; 4580 EPhysics_Body *body = (EPhysics_Body *) data;
@@ -4748,7 +4748,7 @@ _ephysics_body_box_face_evas_object_unset(EPhysics_Body *body, EPhysics_Body_Fac
4748} 4748}
4749 4749
4750static void 4750static void
4751_ephysics_body_cylinder_face_obj_resize_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__) 4751_ephysics_body_cylinder_face_obj_resize_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
4752{ 4752{
4753 EPhysics_Body_Face face = EPHYSICS_BODY_FACE_LAST; 4753 EPhysics_Body_Face face = EPHYSICS_BODY_FACE_LAST;
4754 EPhysics_Body *body = (EPhysics_Body *) data; 4754 EPhysics_Body *body = (EPhysics_Body *) data;
@@ -4909,7 +4909,7 @@ _ephysics_body_cylinder_face_evas_object_unset(EPhysics_Body *body, EPhysics_Bod
4909} 4909}
4910 4910
4911static void 4911static void
4912_ephysics_body_soft_body_face_resize_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__) 4912_ephysics_body_soft_body_face_resize_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
4913{ 4913{
4914 int w, h; 4914 int w, h;
4915 EPhysics_Body_Face_Obj *face; 4915 EPhysics_Body_Face_Obj *face;
@@ -5031,7 +5031,7 @@ _ephysics_body_cloth_face_evas_object_unset(EPhysics_Body *body, EPhysics_Body_F
5031} 5031}
5032 5032
5033static void 5033static void
5034_ephysics_body_soft_sphere_face_obj_resize_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__) 5034_ephysics_body_soft_sphere_face_obj_resize_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
5035{ 5035{
5036 EPhysics_Body *body = (EPhysics_Body *) data; 5036 EPhysics_Body *body = (EPhysics_Body *) data;
5037 Evas_Coord bd, w, h; 5037 Evas_Coord bd, w, h;
@@ -5044,7 +5044,7 @@ _ephysics_body_soft_sphere_face_obj_resize_cb(void *data, Evas *e __UNUSED__, Ev
5044} 5044}
5045 5045
5046static void 5046static void
5047_ephysics_body_soft_sphere_face_evas_object_del_cb(void *data, Evas *evas __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 5047_ephysics_body_soft_sphere_face_evas_object_del_cb(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
5048{ 5048{
5049 Eina_List *l; 5049 Eina_List *l;
5050 void *ldata; 5050 void *ldata;
diff --git a/legacy/ephysics/src/lib/ephysics_body_materials.h b/src/lib/ephysics/ephysics_body_materials.h
index 40b6ee8280..40b6ee8280 100644
--- a/legacy/ephysics/src/lib/ephysics_body_materials.h
+++ b/src/lib/ephysics/ephysics_body_materials.h
diff --git a/legacy/ephysics/src/lib/ephysics_camera.cpp b/src/lib/ephysics/ephysics_camera.cpp
index e1d95664ff..9ca2052f92 100644
--- a/legacy/ephysics/src/lib/ephysics_camera.cpp
+++ b/src/lib/ephysics/ephysics_camera.cpp
@@ -27,7 +27,7 @@ struct _EPhysics_Camera {
27}; 27};
28 28
29static void 29static void
30_ephysics_camera_target_del_cb(void *data, EPhysics_Body *body, void *event_info __UNUSED__) 30_ephysics_camera_target_del_cb(void *data, EPhysics_Body *body, void *event_info EINA_UNUSED)
31{ 31{
32 EPhysics_Camera *camera = (EPhysics_Camera *) data; 32 EPhysics_Camera *camera = (EPhysics_Camera *) data;
33 33
diff --git a/legacy/ephysics/src/lib/ephysics_constraints.cpp b/src/lib/ephysics/ephysics_constraints.cpp
index 5e36fcbf36..5e36fcbf36 100644
--- a/legacy/ephysics/src/lib/ephysics_constraints.cpp
+++ b/src/lib/ephysics/ephysics_constraints.cpp
diff --git a/legacy/ephysics/src/lib/ephysics_main.cpp b/src/lib/ephysics/ephysics_main.cpp
index e486f89ad1..e486f89ad1 100644
--- a/legacy/ephysics/src/lib/ephysics_main.cpp
+++ b/src/lib/ephysics/ephysics_main.cpp
diff --git a/legacy/ephysics/src/lib/ephysics_private.h b/src/lib/ephysics/ephysics_private.h
index 1f888ca88d..1f888ca88d 100644
--- a/legacy/ephysics/src/lib/ephysics_private.h
+++ b/src/lib/ephysics/ephysics_private.h
diff --git a/legacy/ephysics/src/lib/ephysics_quaternion.cpp b/src/lib/ephysics/ephysics_quaternion.cpp
index 899204d563..899204d563 100644
--- a/legacy/ephysics/src/lib/ephysics_quaternion.cpp
+++ b/src/lib/ephysics/ephysics_quaternion.cpp
diff --git a/legacy/ephysics/src/lib/ephysics_shape.cpp b/src/lib/ephysics/ephysics_shape.cpp
index 6aba343ed6..e2fa6d25a6 100644
--- a/legacy/ephysics/src/lib/ephysics_shape.cpp
+++ b/src/lib/ephysics/ephysics_shape.cpp
@@ -95,7 +95,7 @@ ephysics_shape_point_add(EPhysics_Shape *shape, double x, double y, double z)
95 95
96/* TODO: load points from file */ 96/* TODO: load points from file */
97EAPI EPhysics_Shape * 97EAPI EPhysics_Shape *
98ephysics_shape_load(const char *filename __UNUSED__) 98ephysics_shape_load(const char *filename EINA_UNUSED)
99{ 99{
100 EPhysics_Shape *shape; 100 EPhysics_Shape *shape;
101 101
@@ -108,7 +108,7 @@ ephysics_shape_load(const char *filename __UNUSED__)
108 108
109/* TODO: save points to file */ 109/* TODO: save points to file */
110EAPI Eina_Bool 110EAPI Eina_Bool
111ephysics_shape_save(const EPhysics_Shape *shape __UNUSED__, const char *filename __UNUSED__) 111ephysics_shape_save(const EPhysics_Shape *shape EINA_UNUSED, const char *filename EINA_UNUSED)
112{ 112{
113 return EINA_TRUE; 113 return EINA_TRUE;
114} 114}
diff --git a/legacy/ephysics/src/lib/ephysics_trimesh.h b/src/lib/ephysics/ephysics_trimesh.h
index 975cb1cb11..975cb1cb11 100644
--- a/legacy/ephysics/src/lib/ephysics_trimesh.h
+++ b/src/lib/ephysics/ephysics_trimesh.h
diff --git a/legacy/ephysics/src/lib/ephysics_world.cpp b/src/lib/ephysics/ephysics_world.cpp
index 198e47cf77..b75bb953e7 100644
--- a/legacy/ephysics/src/lib/ephysics_world.cpp
+++ b/src/lib/ephysics/ephysics_world.cpp
@@ -301,7 +301,7 @@ _ephysics_world_tick_dispatch(EPhysics_World *world)
301} 301}
302 302
303static void 303static void
304_ephysics_world_tick_cb(btDynamicsWorld *dynamics_world, btScalar timeStep __UNUSED__) 304_ephysics_world_tick_cb(btDynamicsWorld *dynamics_world, btScalar timeStep EINA_UNUSED)
305{ 305{
306 EPhysics_World *world; 306 EPhysics_World *world;
307 world = (EPhysics_World *) dynamics_world->getWorldUserInfo(); 307 world = (EPhysics_World *) dynamics_world->getWorldUserInfo();
@@ -413,7 +413,7 @@ _ephysics_world_free(EPhysics_World *world)
413} 413}
414 414
415static Eina_Bool 415static Eina_Bool
416_simulate_worlds(void *data __UNUSED__) 416_simulate_worlds(void *data EINA_UNUSED)
417{ 417{
418 EPhysics_World *world; 418 EPhysics_World *world;
419 void *wrld; 419 void *wrld;
@@ -635,7 +635,7 @@ _th_simulate(void *data, Ecore_Thread *th)
635} 635}
636 636
637static void 637static void
638_th_msg_cb(void *data, Ecore_Thread *th __UNUSED__, void *msg_data) 638_th_msg_cb(void *data, Ecore_Thread *th EINA_UNUSED, void *msg_data)
639{ 639{
640 EPhysics_World *world = (EPhysics_World *) data; 640 EPhysics_World *world = (EPhysics_World *) data;
641 Simulation_Msg *msg = (Simulation_Msg *) msg_data; 641 Simulation_Msg *msg = (Simulation_Msg *) msg_data;