Пример #1
0
        public static PxPhysics PxCreatePhysics(SWIGTYPE_p_uint32_t version, SWIGTYPE_p_physx__PxFoundation foundation, PxTolerancesScale scale)
        {
            global::System.IntPtr cPtr = physxPINVOKE.PxCreatePhysics__SWIG_2(SWIGTYPE_p_uint32_t.getCPtr(version), SWIGTYPE_p_physx__PxFoundation.getCPtr(foundation), PxTolerancesScale.getCPtr(scale));
            PxPhysics             ret  = (cPtr == global::System.IntPtr.Zero) ? null : new PxPhysics(cPtr, false);

            if (physxPINVOKE.SWIGPendingException.Pending)
            {
                throw physxPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_physx__PxFoundation obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Пример #3
0
        public virtual SWIGTYPE_p_physx__PxFoundation getFoundation()
        {
            SWIGTYPE_p_physx__PxFoundation ret = new SWIGTYPE_p_physx__PxFoundation(physxPINVOKE.PxPhysics_getFoundation(swigCPtr), false);

            return(ret);
        }