ackb2d 0.9
3D Gamestudio Box 2d Wraper
|
00001 #ifndef __B2_SETTINGS_H__ 00002 #define __B2_SETTINGS_H__ 00003 00004 typedef unsigned char uint8; 00005 typedef unsigned short uint16; 00006 typedef unsigned int uint32; 00007 typedef float float32; 00008 00010 // Body type 00012 #define B2_STATICBODY 0 00013 #define B2_KINEMATICBODY 1 00014 #define B2_DYNAMICBODY 2 00015 00017 // Shape type 00019 #define E_UNKNOWN -1 00020 #define E_CIRCLE 0 00021 #define E_POLYGON 1 00022 #define E_TYPECOUNT 2 00023 00025 // Joint type 00027 #define E_UNKNOWNJOINT 0 00028 #define E_REVOLUTEJOINT 1 00029 #define E_PRISMATICJOINT 2 00030 #define E_DISTANCEJOINT 3 00031 #define E_PULLEYJOINT 4 00032 #define E_MOUSEJOINT 5 00033 #define E_GEARJOINT 6 00034 #define E_LINEJOINT 7 00035 #define E_WELDJOINT 8 00036 #define E_FRICTIONJOINT 9 00037 00039 // Limit state 00041 #define E_INACTIVELIMIT 0 00042 #define E_ATLOWERLIMIT 1 00043 #define E_ATUPPERLIMIT 2 00044 #define E_EQUALLIMITS 3 00045 00047 // Debug draw 00049 #define E_SHAPEBIT 0x0001 ///< DRAW SHAPES 00050 #define E_JOINTBIT 0x0002 ///< DRAW JOINT CONNECTIONS 00051 #define E_AABBBIT 0x0004 ///< DRAW AXIS ALIGNED BOUNDING BOXES 00052 #define E_PAIRBIT 0x0008 ///< DRAW BROAD-PHASE PAIRS 00053 #define E_CENTEROFMASSBIT 0x0010 ///< DRAW CENTER OF MASS FRAME 00054 00056 // b2TOIOutput 00058 #define E_TOI_UNKNOWN 0 00059 #define E_TOI_FAILED 1 00060 #define E_TOI_OVERLAPPED 2 00061 #define E_TOI_TOUCHING 3 00062 #define E_TOI_SEPARATED 4 00063 00065 // b2Manifold 00067 #define E_CIRCLES 0 00068 #define E_FACEA 1 00069 #define E_FACEB 2 00070 00072 // PointState 00074 #define B2_NULLSTATE 0 ///< point does not exist 00075 #define B2_ADDSTATE 1 ///< point was added in the update 00076 #define B2_PERSISTSTATE 2 ///< point persisted across the update 00077 #define B2_REMOVESTATE 3 ///< point was removed in the update 00078 00079 #endif // __B2_SETTINGS_H__