//BIOQUIRK: This junk should ideally be handled by a source generator or something // (If it does get handled by a source generator it also needs to be threadsafe, which this is not.) public TriggersFilterCallback() { if (VTable.IsDefault) { VTable = new PxSimulationFilterCallback.VirtualMethodTable() { pairFound = &pairFound, pairLost = &pairLost, statusChange = &statusChange, //BIOQUIRK: Method is missing so vtable entry is untyped __DeletingDestructorPointer = (delegate * unmanaged[Cdecl] < PxSimulationFilterCallback *, void >) & Destructor }; } Base = new() { VirtualMethodTablePointer = VTable }; }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PxSimulationFilterCallback obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }