Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
70 lines (50 sloc) 1.33 KB
TYPEMAP
char * T_PV
cpBool T_BOOL
cpCollisionType T_UV
cpGroup T_IV
cpLayers T_IV
cpTimestamp T_UV
cpFloat T_NV
cpArbiter * O_OBJECT
cpBody * O_OBJ_BODY
cpConstraint * O_OBJ_CONSTRAINT
cpShape * O_OBJ_SHAPE
cpSpace * O_OBJ_SPACE
cpVect O_OBJ_VECT
cpMat2x2 O_OBJ_MAT2X2
cpBB O_OBJ_BB
INPUT
O_OBJECT
$var = ($type)cpPli_sv_to_object($arg);
O_OBJ_BODY
$var = ($type)cpPli_sv_to_body($arg);
O_OBJ_CONSTRAINT
$var = ($type)cpPli_sv_to_constraint($arg);
O_OBJ_SHAPE
$var = ($type)cpPli_sv_to_shape($arg);
O_OBJ_SPACE
$var = ($type)cpPli_sv_to_space($arg);
O_OBJ_VECT
$var = cpPli_sv_to_vect($arg);
O_OBJ_MAT2X2
$var = cpPli_sv_to_mat2x2($arg);
O_OBJ_BB
$var = cpPli_sv_to_bb($arg);
OUTPUT
O_OBJECT
cpPli_object_to_sv($arg, $var, CLASS);
O_OBJ_BODY
cpPli_body_to_sv($arg, $var, CLASS);
O_OBJ_CONSTRAINT
cpPli_constraint_to_sv($arg, $var, CLASS);
O_OBJ_SHAPE
cpPli_shape_to_sv($arg, $var, CLASS);
O_OBJ_SPACE
cpPli_space_to_sv($arg, $var, CLASS);
O_OBJ_VECT
$arg = cpPli_vect_to_sv($var);
O_OBJ_MAT2X2
$arg = cpPli_mat2x2_to_sv($var);
O_OBJ_BB
$arg = cpPli_bb_to_sv($var);