coordinate_ctrl.h
Go to the documentation of this file.00001 #ifndef COORDINATE_CTRL_C_H
00002 #define COORDINATE_CTRL_C_H
00003
00013 enum {
00014 CRD_EFFECT_OFF = 0,
00015 CRD_EFFECT_ON = 1,
00016 };
00017
00018
00022 enum {
00023 GL = 0,
00024 FS = 1,
00025 };
00026
00027
00031 typedef struct {
00032 int parent_id;
00033 int x;
00034 int y;
00035 int div16;
00036 } offsetInfo_t;
00037
00038
00039 #ifdef WIN32
00040 #ifdef C_RUNCTRL_SOURCE
00041 #define LIB_BUILD
00042 #endif
00043 #endif
00044 #include "cpp_extern_macro.h"
00045 BEGIN_C_DECLS;
00047 extern void _initCoordinateCtrl(offsetInfo_t *crdInfo, int num);
00048 extern int run_getBodyPos(int crd_id, int *x, int *y, int *div16);
00049 extern int run_createCoordinate(void);
00050 extern int run_deleteCoordinate(int crd_id);
00051 extern int run_getParentId(int crd_id);
00052 extern int run_getCoordinateOffset(int *offset_x, int *offset_y,
00053 int *offset_div16,
00054 int base_id, int target_id,
00055 int x, int y, int div16);
00056 extern int run_updateParentOffset(int dest_id, int x, int y, int div16);
00057 extern int run_setCoordinateParent(int dest_id, int parent_id,
00058 int x, int y, int div16);
00059 extern int run_setCoordinateBody(int dest_id, int x, int y, int div16);
00060 extern int run_adjustBodyPos(int x, int y, int div16);
00061
00062 END_C_DECLS;
00063 #endif
00064