private void SetFbxSharpProgressCallback(FbxSharpProgressCallback callback) { NativeMethods.FbxImporter_SetFbxSharpProgressCallback(swigCPtr, FbxSharpProgressCallback.getCPtr(callback)); if (NativeMethods.SWIGPendingException.Pending) { throw NativeMethods.SWIGPendingException.Retrieve(); } }
public void SetProgressCallback(Globals.FbxProgressCallback callback) { if (m_progressCallback != null) { m_progressCallback.Dispose(); } m_progressCallback = (callback == null) ? null : new FbxSharpProgressCallback.Wrapper(callback); SetFbxSharpProgressCallback(m_progressCallback); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxSharpProgressCallback obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }