summaryrefslogtreecommitdiff
path: root/legacy/ephysics/src/bin/ephysics_test.h
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2012-12-13 21:13:47 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-12-13 21:13:47 +0000
commitf1088d563156128fa30fe8a040b33c21266a8b2e (patch)
tree50730cec31c56a5831ba9dedd532f12d4248960e /legacy/ephysics/src/bin/ephysics_test.h
parent9584915d916fa358b6cdeba9234acebd50ebde05 (diff)
ephysics_tests: copy forgotten stuff and svnignore
SVN revision: 80895
Diffstat (limited to '')
-rw-r--r--legacy/ephysics/src/bin/ephysics_test.h81
1 files changed, 0 insertions, 81 deletions
diff --git a/legacy/ephysics/src/bin/ephysics_test.h b/legacy/ephysics/src/bin/ephysics_test.h
deleted file mode 100644
index 56db5957b1..0000000000
--- a/legacy/ephysics/src/bin/ephysics_test.h
+++ /dev/null
@@ -1,81 +0,0 @@
1#ifndef _EPHYSICS_PRIVATE_H
2#define _EPHYSICS_PRIVATE_H
3
4#include <Edje.h>
5#include <Elementary.h>
6#include <Eina.h>
7#include <Evas.h>
8
9#include "EPhysics.h"
10
11#ifdef EPHYSICS_LOG_COLOR
12#undef EPHYSICS_LOG_COLOR
13#endif
14#define EPHYSICS_LOG_COLOR EINA_COLOR_BLUE
15
16#ifdef ERR
17# undef ERR
18#endif
19#define ERR(...) EINA_LOG_DOM_ERR(_ephysics_test_log_dom, __VA_ARGS__)
20
21#ifdef DBG
22# undef DBG
23#endif
24#define DBG(...) EINA_LOG_DOM_DBG(_ephysics_test_log_dom, __VA_ARGS__)
25
26#ifdef INF
27# undef INF
28#endif
29#define INF(...) EINA_LOG_DOM_INFO(_ephysics_test_log_dom, __VA_ARGS__)
30
31#ifdef WRN
32# undef WRN
33#endif
34#define WRN(...) EINA_LOG_DOM_WARN(_ephysics_test_log_dom, __VA_ARGS__)
35
36#ifdef CRIT
37# undef CRIT
38#endif
39#define CRIT(...) EINA_LOG_DOM_CRIT(_ephysics_test_log_dom, __VA_ARGS__)
40
41#define EPHYSICS_TEST_THEME "ephysics_test"
42#define WIDTH (512)
43#define HEIGHT (384)
44#define DEPTH (100)
45#define SHADOW_ALPHA_ID (1)
46#define FLOOR_Y (344)
47#define FLOOR_WIDTH (750)
48#define SH_THRESHOLD (200)
49
50#ifdef __cplusplus
51extern "C" {
52#endif
53
54extern int _ephysics_test_log_dom;
55
56typedef struct _Test_Data Test_Data;
57
58struct _Test_Data {
59 EPhysics_World *world;
60 Evas_Object *layout;
61 Evas_Object *win;
62 Eina_List *constraints;
63 Eina_List *evas_objs;
64 Eina_List *bodies;
65 void *data;
66};
67
68Test_Data *test_data_new(void);
69void test_data_del(Test_Data *test_data);
70
71void test_clean(Test_Data *test_data);
72
73void test_win_add(Test_Data *test_data, const char *title, Eina_Bool autodel);
74
75void update_object_cb(void *data, EPhysics_Body *body, void *event_info);
76
77#ifdef __cplusplus
78}
79#endif
80
81#endif