summaryrefslogtreecommitdiff
path: root/src/lib/edje/edje_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/edje/edje_private.h')
-rw-r--r--src/lib/edje/edje_private.h79
1 files changed, 79 insertions, 0 deletions
diff --git a/src/lib/edje/edje_private.h b/src/lib/edje/edje_private.h
index fd53254..daf3041 100644
--- a/src/lib/edje/edje_private.h
+++ b/src/lib/edje/edje_private.h
@@ -3279,6 +3279,85 @@ Edje_Vector_Data * _edje_ref_vector_data(Edje *ed, int svg_id);
3279 3279
3280EAPI void _edje_svg_node_free(Svg_Node *node); 3280EAPI void _edje_svg_node_free(Svg_Node *node);
3281 3281
3282#ifdef HAVE_EPHYSICS
3283Eina_Bool _edje_ephysics_load(void);
3284
3285typedef struct _Edje_Ephysics Edje_Ephysics;
3286
3287struct _Edje_Ephysics
3288{
3289 Eina_Module *mod;
3290
3291 int (*ephysics_init) (void);
3292 int (*ephysics_shutdown) (void);
3293 EPhysics_World *(*ephysics_world_new) (void);
3294 void (*ephysics_world_del) (EPhysics_World *world);
3295 void (*ephysics_world_event_callback_add) (EPhysics_World *world, EPhysics_Callback_World_Type type, EPhysics_World_Event_Cb func, const void *data);
3296 void (*ephysics_world_rate_set) (EPhysics_World *world, double rate);
3297 void (*ephysics_world_gravity_set) (EPhysics_World *world, double gx, double gy, double gz);
3298 void (*ephysics_world_render_geometry_set) (EPhysics_World *world, Evas_Coord x, Evas_Coord y, Evas_Coord z, Evas_Coord w, Evas_Coord h, Evas_Coord d);
3299 void (*ephysics_world_render_geometry_get) (const EPhysics_World *world, Evas_Coord *x, Evas_Coord *y, Evas_Coord *z, Evas_Coord *w, Evas_Coord *h, Evas_Coord *d);
3300 void (*ephysics_quaternion_set) (EPhysics_Quaternion *quat, double x, double y, double z, double w);
3301 void (*ephysics_quaternion_get) (const EPhysics_Quaternion *quat, double *x, double *y, double *z, double *w);
3302 void (*ephysics_quaternion_normalize) (EPhysics_Quaternion *quat);
3303 EPhysics_Body *(*ephysics_body_box_add) (EPhysics_World *world);
3304 EPhysics_Body *(*ephysics_body_sphere_add) (EPhysics_World *world);
3305 EPhysics_Body *(*ephysics_body_cylinder_add) (EPhysics_World *world);
3306 EPhysics_Body *(*ephysics_body_soft_box_add) (EPhysics_World *world);
3307 EPhysics_Body *(*ephysics_body_soft_sphere_add) (EPhysics_World *world, int granularity);
3308 EPhysics_Body *(*ephysics_body_soft_cylinder_add) (EPhysics_World *world);
3309 EPhysics_Body *(*ephysics_body_cloth_add) (EPhysics_World *world, unsigned short rows, unsigned short columns);
3310 EPhysics_Body *(*ephysics_body_top_boundary_add) (EPhysics_World *world);
3311 EPhysics_Body *(*ephysics_body_bottom_boundary_add) (EPhysics_World *world);
3312 EPhysics_Body *(*ephysics_body_right_boundary_add) (EPhysics_World *world);
3313 EPhysics_Body *(*ephysics_body_left_boundary_add) (EPhysics_World *world);
3314 EPhysics_Body *(*ephysics_body_front_boundary_add) (EPhysics_World *world);
3315 EPhysics_Body *(*ephysics_body_back_boundary_add) (EPhysics_World *world);
3316 void (*ephysics_body_central_impulse_apply) (EPhysics_Body *body, double x, double y, double z);
3317 void (*ephysics_body_torque_impulse_apply) (EPhysics_Body *body, double pitch, double yaw, double roll);
3318 void (*ephysics_body_central_force_apply) (EPhysics_Body *body, double x, double y, double z);
3319 void (*ephysics_body_torque_apply) (EPhysics_Body *body, double torque_x, double torque_y, double torque_z);
3320 void (*ephysics_body_forces_clear) (EPhysics_Body *body);
3321 void (*ephysics_body_linear_velocity_set) (EPhysics_Body *body, double x, double y, double z);
3322 void (*ephysics_body_angular_velocity_set) (EPhysics_Body *body, double x, double y, double z);
3323 void (*ephysics_body_stop) (EPhysics_Body *body);
3324 void (*ephysics_body_rotation_set) (EPhysics_Body *body, EPhysics_Quaternion *quat);
3325 void (*ephysics_body_forces_get) (const EPhysics_Body *body, double *x, double *y, double *z);
3326 void (*ephysics_body_torques_get) (const EPhysics_Body *body, double *x, double *y, double *z);
3327 void (*ephysics_body_linear_velocity_get) (const EPhysics_Body *body, double *x, double *y, double *z);
3328 void (*ephysics_body_angular_velocity_get) (const EPhysics_Body *body, double *x, double *y, double *z);
3329 void (*ephysics_body_linear_movement_enable_set) (EPhysics_Body *body, Eina_Bool enable_x, Eina_Bool enable_y, Eina_Bool enable_z);
3330 void (*ephysics_body_angular_movement_enable_set) (EPhysics_Body *body, Eina_Bool enable_x, Eina_Bool enable_y, Eina_Bool enable_z);
3331 void (*ephysics_body_move) (EPhysics_Body *body, Evas_Coord x, Evas_Coord y, Evas_Coord z);
3332 void (*ephysics_body_geometry_get) (const EPhysics_Body *body, Evas_Coord *x, Evas_Coord *y, Evas_Coord *z, Evas_Coord *w, Evas_Coord *h, Evas_Coord *d);
3333 void (*ephysics_body_resize) (EPhysics_Body *body, Evas_Coord w, Evas_Coord h, Evas_Coord d);
3334 void (*ephysics_body_material_set) (EPhysics_Body *body, EPhysics_Body_Material material);
3335 void (*ephysics_body_density_set) (EPhysics_Body *body, double density);
3336 void (*ephysics_body_mass_set) (EPhysics_Body *body, double mass);
3337 void (*ephysics_body_soft_body_hardness_set) (EPhysics_Body *body, double hardness);
3338 void (*ephysics_body_restitution_set) (EPhysics_Body *body, double restitution);
3339 void (*ephysics_body_friction_set) (EPhysics_Body *body, double friction);
3340 void (*ephysics_body_damping_set) (EPhysics_Body *body, double linear_damping, double angular_damping);
3341 void (*ephysics_body_sleeping_threshold_set) (EPhysics_Body *body, double linear_threshold, double angular_threshold);
3342 void (*ephysics_body_light_set) (EPhysics_Body *body, Eina_Bool enable);
3343 void (*ephysics_body_back_face_culling_set) (EPhysics_Body *body, Eina_Bool enable);
3344 void (*ephysics_body_evas_object_update) (EPhysics_Body *body);
3345 void (*ephysics_body_face_evas_object_set) (EPhysics_Body *body, EPhysics_Body_Face face, Evas_Object *evas_obj, Eina_Bool use_obj_pos);
3346 void (*ephysics_body_evas_object_set) (EPhysics_Body *body, Evas_Object *evas_obj, Eina_Bool use_obj_pos);
3347 void (*ephysics_body_event_callback_add) (EPhysics_Body *body, EPhysics_Callback_Body_Type type, EPhysics_Body_Event_Cb func, const void *data);
3348 void (*ephysics_body_data_set) (EPhysics_Body *body, void *data);
3349 void *(*ephysics_body_data_get) (const EPhysics_Body *body);
3350 EPhysics_Quaternion *(*ephysics_body_rotation_get) (const EPhysics_Body *body, EPhysics_Quaternion *rotation);
3351};
3352
3353extern Edje_Ephysics *_edje_ephysics;
3354#define EPH_LOAD() _edje_ephysics_load()
3355#define EPH_CALL(x) _edje_ephysics->x
3356
3357#endif
3358
3359
3360
3282#ifdef HAVE_LIBREMIX 3361#ifdef HAVE_LIBREMIX
3283#include <remix/remix.h> 3362#include <remix/remix.h>
3284#endif 3363#endif