#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "ephysics_test.h"
_rotate_cb(void *data)
{
free(quat_prev);
}
_increase_torque_cb(void *data)
{
}
_stop_torque_cb(void *data)
{
}
static void
_del_cb(
void *data,
EPhysics_Body *body __UNUSED__,
void *event_info __UNUSED__)
{
}
static void
_del_torque_cb(
void *data __UNUSED__,
Evas *e __UNUSED__,
Evas_Object *obj,
void *event_info __UNUSED__)
{
if (timer)
if (timer)
}
static void
_update_object_cb(
void *data __UNUSED__,
EPhysics_Body *body,
void *event_info __UNUSED__)
{
double rx, ry, rz, rw, vrot, torque;
DBG(
"body: %p, rot: (%lf, %lf, %lf, %lf), vrot: %lf, torque: %lf", body,
rx, ry, rz, rw, vrot, torque);
}
static void
_world_populate(Test_Data *test_data)
{
cube, PACKAGE_DATA_DIR "/" EPHYSICS_TEST_THEME ".edj", "blue-cube");
_update_object_cb, NULL);
cube, PACKAGE_DATA_DIR "/" EPHYSICS_TEST_THEME ".edj", "purple-cube");
_update_object_cb, NULL);
cube, PACKAGE_DATA_DIR "/" EPHYSICS_TEST_THEME ".edj", "purple-cube");
_update_object_cb, NULL);
_del_cb, timer);
cube, PACKAGE_DATA_DIR "/" EPHYSICS_TEST_THEME ".edj", "blue-cube");
_update_object_cb, NULL);
_del_torque_cb, NULL);
}
static void
_restart(
void *data,
Evas_Object *obj __UNUSED__,
const char *emission __UNUSED__,
const char *source __UNUSED__)
{
Test_Data *test_data = data;
test_clean(test_data);
_world_populate(test_data);
}
void
test_rotating_forever(
void *data __UNUSED__,
Evas_Object *obj __UNUSED__,
void *event_info __UNUSED__)
{
Test_Data *test_data;
return;
test_data = test_data_new();
test_win_add(test_data,
"Rotating Forever",
EINA_TRUE);
_restart, test_data);
WIDTH - 100, FLOOR_Y - 40, DEPTH);
test_data->world = world;
_world_populate(test_data);
}