コード例 #1
0
 private void SwigDirectorConnect()
 {
     if (SwigDerivedClassHasMethod("drawLine", swigMethodTypes0))
     {
         swigDelegate0 = new SwigDelegatebtIDebugDraw_0(SwigDirectordrawLine__SWIG_0);
     }
     if (SwigDerivedClassHasMethod("drawLine", swigMethodTypes1))
     {
         swigDelegate1 = new SwigDelegatebtIDebugDraw_1(SwigDirectordrawLine__SWIG_1);
     }
     if (SwigDerivedClassHasMethod("drawSphere", swigMethodTypes2))
     {
         swigDelegate2 = new SwigDelegatebtIDebugDraw_2(SwigDirectordrawSphere__SWIG_0);
     }
     if (SwigDerivedClassHasMethod("drawSphere", swigMethodTypes3))
     {
         swigDelegate3 = new SwigDelegatebtIDebugDraw_3(SwigDirectordrawSphere__SWIG_1);
     }
     if (SwigDerivedClassHasMethod("drawTriangle", swigMethodTypes4))
     {
         swigDelegate4 = new SwigDelegatebtIDebugDraw_4(SwigDirectordrawTriangle__SWIG_0);
     }
     if (SwigDerivedClassHasMethod("drawTriangle", swigMethodTypes5))
     {
         swigDelegate5 = new SwigDelegatebtIDebugDraw_5(SwigDirectordrawTriangle__SWIG_1);
     }
     if (SwigDerivedClassHasMethod("drawContactPoint", swigMethodTypes6))
     {
         swigDelegate6 = new SwigDelegatebtIDebugDraw_6(SwigDirectordrawContactPoint);
     }
     if (SwigDerivedClassHasMethod("reportErrorWarning", swigMethodTypes7))
     {
         swigDelegate7 = new SwigDelegatebtIDebugDraw_7(SwigDirectorreportErrorWarning);
     }
     if (SwigDerivedClassHasMethod("draw3dText", swigMethodTypes8))
     {
         swigDelegate8 = new SwigDelegatebtIDebugDraw_8(SwigDirectordraw3dText);
     }
     if (SwigDerivedClassHasMethod("setDebugMode", swigMethodTypes9))
     {
         swigDelegate9 = new SwigDelegatebtIDebugDraw_9(SwigDirectorsetDebugMode);
     }
     if (SwigDerivedClassHasMethod("getDebugMode", swigMethodTypes10))
     {
         swigDelegate10 = new SwigDelegatebtIDebugDraw_10(SwigDirectorgetDebugMode);
     }
     if (SwigDerivedClassHasMethod("drawAabb", swigMethodTypes11))
     {
         swigDelegate11 = new SwigDelegatebtIDebugDraw_11(SwigDirectordrawAabb);
     }
     if (SwigDerivedClassHasMethod("drawTransform", swigMethodTypes12))
     {
         swigDelegate12 = new SwigDelegatebtIDebugDraw_12(SwigDirectordrawTransform);
     }
     if (SwigDerivedClassHasMethod("drawArc", swigMethodTypes13))
     {
         swigDelegate13 = new SwigDelegatebtIDebugDraw_13(SwigDirectordrawArc__SWIG_0);
     }
     if (SwigDerivedClassHasMethod("drawArc", swigMethodTypes14))
     {
         swigDelegate14 = new SwigDelegatebtIDebugDraw_14(SwigDirectordrawArc__SWIG_1);
     }
     if (SwigDerivedClassHasMethod("drawSpherePatch", swigMethodTypes15))
     {
         swigDelegate15 = new SwigDelegatebtIDebugDraw_15(SwigDirectordrawSpherePatch__SWIG_0);
     }
     if (SwigDerivedClassHasMethod("drawSpherePatch", swigMethodTypes16))
     {
         swigDelegate16 = new SwigDelegatebtIDebugDraw_16(SwigDirectordrawSpherePatch__SWIG_1);
     }
     if (SwigDerivedClassHasMethod("drawBox", swigMethodTypes17))
     {
         swigDelegate17 = new SwigDelegatebtIDebugDraw_17(SwigDirectordrawBox__SWIG_0);
     }
     if (SwigDerivedClassHasMethod("drawBox", swigMethodTypes18))
     {
         swigDelegate18 = new SwigDelegatebtIDebugDraw_18(SwigDirectordrawBox__SWIG_1);
     }
     if (SwigDerivedClassHasMethod("drawCapsule", swigMethodTypes19))
     {
         swigDelegate19 = new SwigDelegatebtIDebugDraw_19(SwigDirectordrawCapsule);
     }
     if (SwigDerivedClassHasMethod("drawCylinder", swigMethodTypes20))
     {
         swigDelegate20 = new SwigDelegatebtIDebugDraw_20(SwigDirectordrawCylinder);
     }
     if (SwigDerivedClassHasMethod("drawCone", swigMethodTypes21))
     {
         swigDelegate21 = new SwigDelegatebtIDebugDraw_21(SwigDirectordrawCone);
     }
     if (SwigDerivedClassHasMethod("drawPlane", swigMethodTypes22))
     {
         swigDelegate22 = new SwigDelegatebtIDebugDraw_22(SwigDirectordrawPlane);
     }
     LinearMathPINVOKE.btIDebugDraw_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11, swigDelegate12, swigDelegate13, swigDelegate14, swigDelegate15, swigDelegate16, swigDelegate17, swigDelegate18, swigDelegate19, swigDelegate20, swigDelegate21, swigDelegate22);
 }
コード例 #2
0
 private void SwigDirectorConnect() {
   if (SwigDerivedClassHasMethod("drawLine", swigMethodTypes0))
     swigDelegate0 = new SwigDelegatebtIDebugDraw_0(SwigDirectordrawLine__SWIG_0);
   if (SwigDerivedClassHasMethod("drawLine", swigMethodTypes1))
     swigDelegate1 = new SwigDelegatebtIDebugDraw_1(SwigDirectordrawLine__SWIG_1);
   if (SwigDerivedClassHasMethod("drawSphere", swigMethodTypes2))
     swigDelegate2 = new SwigDelegatebtIDebugDraw_2(SwigDirectordrawSphere__SWIG_0);
   if (SwigDerivedClassHasMethod("drawSphere", swigMethodTypes3))
     swigDelegate3 = new SwigDelegatebtIDebugDraw_3(SwigDirectordrawSphere__SWIG_1);
   if (SwigDerivedClassHasMethod("drawTriangle", swigMethodTypes4))
     swigDelegate4 = new SwigDelegatebtIDebugDraw_4(SwigDirectordrawTriangle__SWIG_0);
   if (SwigDerivedClassHasMethod("drawTriangle", swigMethodTypes5))
     swigDelegate5 = new SwigDelegatebtIDebugDraw_5(SwigDirectordrawTriangle__SWIG_1);
   if (SwigDerivedClassHasMethod("drawContactPoint", swigMethodTypes6))
     swigDelegate6 = new SwigDelegatebtIDebugDraw_6(SwigDirectordrawContactPoint);
   if (SwigDerivedClassHasMethod("reportErrorWarning", swigMethodTypes7))
     swigDelegate7 = new SwigDelegatebtIDebugDraw_7(SwigDirectorreportErrorWarning);
   if (SwigDerivedClassHasMethod("draw3dText", swigMethodTypes8))
     swigDelegate8 = new SwigDelegatebtIDebugDraw_8(SwigDirectordraw3dText);
   if (SwigDerivedClassHasMethod("setDebugMode", swigMethodTypes9))
     swigDelegate9 = new SwigDelegatebtIDebugDraw_9(SwigDirectorsetDebugMode);
   if (SwigDerivedClassHasMethod("getDebugMode", swigMethodTypes10))
     swigDelegate10 = new SwigDelegatebtIDebugDraw_10(SwigDirectorgetDebugMode);
   if (SwigDerivedClassHasMethod("drawAabb", swigMethodTypes11))
     swigDelegate11 = new SwigDelegatebtIDebugDraw_11(SwigDirectordrawAabb);
   if (SwigDerivedClassHasMethod("drawTransform", swigMethodTypes12))
     swigDelegate12 = new SwigDelegatebtIDebugDraw_12(SwigDirectordrawTransform);
   if (SwigDerivedClassHasMethod("drawArc", swigMethodTypes13))
     swigDelegate13 = new SwigDelegatebtIDebugDraw_13(SwigDirectordrawArc__SWIG_0);
   if (SwigDerivedClassHasMethod("drawArc", swigMethodTypes14))
     swigDelegate14 = new SwigDelegatebtIDebugDraw_14(SwigDirectordrawArc__SWIG_1);
   if (SwigDerivedClassHasMethod("drawSpherePatch", swigMethodTypes15))
     swigDelegate15 = new SwigDelegatebtIDebugDraw_15(SwigDirectordrawSpherePatch__SWIG_0);
   if (SwigDerivedClassHasMethod("drawSpherePatch", swigMethodTypes16))
     swigDelegate16 = new SwigDelegatebtIDebugDraw_16(SwigDirectordrawSpherePatch__SWIG_1);
   if (SwigDerivedClassHasMethod("drawBox", swigMethodTypes17))
     swigDelegate17 = new SwigDelegatebtIDebugDraw_17(SwigDirectordrawBox__SWIG_0);
   if (SwigDerivedClassHasMethod("drawBox", swigMethodTypes18))
     swigDelegate18 = new SwigDelegatebtIDebugDraw_18(SwigDirectordrawBox__SWIG_1);
   if (SwigDerivedClassHasMethod("drawCapsule", swigMethodTypes19))
     swigDelegate19 = new SwigDelegatebtIDebugDraw_19(SwigDirectordrawCapsule);
   if (SwigDerivedClassHasMethod("drawCylinder", swigMethodTypes20))
     swigDelegate20 = new SwigDelegatebtIDebugDraw_20(SwigDirectordrawCylinder);
   if (SwigDerivedClassHasMethod("drawCone", swigMethodTypes21))
     swigDelegate21 = new SwigDelegatebtIDebugDraw_21(SwigDirectordrawCone);
   if (SwigDerivedClassHasMethod("drawPlane", swigMethodTypes22))
     swigDelegate22 = new SwigDelegatebtIDebugDraw_22(SwigDirectordrawPlane);
   LinearMathPINVOKE.btIDebugDraw_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11, swigDelegate12, swigDelegate13, swigDelegate14, swigDelegate15, swigDelegate16, swigDelegate17, swigDelegate18, swigDelegate19, swigDelegate20, swigDelegate21, swigDelegate22);
 }