Beispiel #1
0
        public FbxPlugin FindPlugin(string pName, string pVersion)
        {
            global::System.IntPtr cPtr = FbxWrapperNativePINVOKE.FbxManager_FindPlugin(swigCPtr, pName, pVersion);
            FbxPlugin             ret  = (cPtr == global::System.IntPtr.Zero) ? null : new FbxPlugin(cPtr, false);

            return(ret);
        }
Beispiel #2
0
 public void Unregister(FbxPlugin pPlugin)
 {
     FbxWrapperNativePINVOKE.FbxPluginContainer_Unregister(swigCPtr, FbxPlugin.getCPtr(pPlugin));
     if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
     {
         throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void Register(FbxPlugin pPlugin)
 {
     fbx_wrapperPINVOKE.FbxPluginContainer_Register(swigCPtr, FbxPlugin.getCPtr(pPlugin));
     if (fbx_wrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw fbx_wrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #4
0
 GameObject ImportModel(string f, int n, int t, int m)
 {
     //Option: 0 - None, 1 - Import, 2 - Compute/Generate(Normal/Tangent only)
     FbxPluginOptions options = new FbxPluginOptions () { filename = f, normalsOption = n, tangentsOption = t, materialsOption = m };
     FbxPlugin fp = new FbxPlugin ();
     fp.ImportModel (options);
     GameObject go = fp.DisplayScene ();
     return go;
 }
Beispiel #5
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxPlugin obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }