equal
deleted
inserted
replaced
16 // |
16 // |
17 |
17 |
18 #ifndef CLIENT_H_ |
18 #ifndef CLIENT_H_ |
19 #define CLIENT_H_ |
19 #define CLIENT_H_ |
20 |
20 |
|
21 #include <string> |
|
22 |
21 enum TuioEvent { |
23 enum TuioEvent { |
22 TE_OBJECT_ADD = 0, |
24 TE_OBJECT_ADD = 0, |
23 TE_OBJECT_UPDATE = 1, |
25 TE_OBJECT_UPDATE = 1, |
24 TE_OBJECT_REMOVE = 2, |
26 TE_OBJECT_REMOVE = 2, |
25 TE_CURSOR_ADD = 3, |
27 TE_CURSOR_ADD = 3, |
26 TE_CURSOR_UPDATE = 4, |
28 TE_CURSOR_UPDATE = 4, |
27 TE_CURSOR_REMOVE = 5, |
29 TE_CURSOR_REMOVE = 5, |
|
30 /* |
|
31 * Ajouté par alexandre.bastien@iri.centrepompidou.fr |
|
32 */ |
|
33 TE_STRING_ADD = 6, |
|
34 TE_STRING_UPDATE = 7, |
|
35 TE_STRING_REMOVE = 8, |
28 }; |
36 }; |
29 |
37 |
30 typedef struct { |
38 typedef struct { |
31 TuioEvent type; |
39 TuioEvent type; |
32 long fid; |
40 long fid; |
33 int sid; |
41 int sid; |
34 float x; |
42 float x; |
35 float y; |
43 float y; |
36 float z; |
44 float z; |
37 float a; |
45 float a; |
|
46 //Ajouté par alexandre.bastien@iri.centrepompidou.fr |
|
47 const char* code; |
38 } TuioEventData; |
48 } TuioEventData; |
39 |
49 |
40 void tuio_start(int); |
50 /*void tuio_start(int); |
41 void tuio_stop(); |
51 void tuio_stop();*/ |
42 |
52 |
43 extern void tuio_callback(TuioEventData); |
53 extern void tuio_callback(TuioEventData); |
44 |
54 |
|
55 extern "C" |
|
56 { |
|
57 __declspec(dllexport) void tuio_start(int); |
|
58 __declspec(dllexport) void tuio_stop(void); |
|
59 __declspec(dllexport) void t(void); |
|
60 } |
|
61 |
45 #endif |
62 #endif |
46 |
63 |