예제 #1
0
 public FBXVector2(FBXVector2 other) : this(FBXImporterUnmanagedPINVOKE.new_FBXVector2__SWIG_2(FBXVector2.getCPtr(other)), true)
 {
     if (FBXImporterUnmanagedPINVOKE.SWIGPendingException.Pending)
     {
         throw FBXImporterUnmanagedPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #2
0
 public void SetVector2(string key, FBXVector2 value)
 {
     FBXImporterUnmanagedPINVOKE.FBXMaterialPtr_SetVector2(swigCPtr, key, FBXVector2.getCPtr(value));
     if (FBXImporterUnmanagedPINVOKE.SWIGPendingException.Pending)
     {
         throw FBXImporterUnmanagedPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #3
0
 public void SetUV(int layerIndex, int index, FBXVector2 value)
 {
     FBXImporterUnmanagedPINVOKE.FBXModelPtr_SetUV(swigCPtr, layerIndex, index, FBXVector2.getCPtr(value));
     if (FBXImporterUnmanagedPINVOKE.SWIGPendingException.Pending)
     {
         throw FBXImporterUnmanagedPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #4
0
    public FBXVector2 GetVector2(string key, FBXVector2 defaultValue)
    {
        FBXVector2 ret = new FBXVector2(FBXImporterUnmanagedPINVOKE.FBXMaterialPtr_GetVector2__SWIG_0(swigCPtr, key, FBXVector2.getCPtr(defaultValue)), true);

        if (FBXImporterUnmanagedPINVOKE.SWIGPendingException.Pending)
        {
            throw FBXImporterUnmanagedPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
예제 #5
0
 public FBXVector2 GetUV(int layerIndex, int index) {
   FBXVector2 ret = new FBXVector2(FBXImporterUnmanagedPINVOKE.FBXModel_GetUV(swigCPtr, layerIndex, index), true);
   return ret;
 }
예제 #6
0
    public FBXVector2 GetVector2(string key)
    {
        FBXVector2 ret = new FBXVector2(FBXImporterUnmanagedPINVOKE.FBXMaterialPtr_GetVector2__SWIG_1(swigCPtr, key), true);

        return(ret);
    }
예제 #7
0
 static Vector2 FBXVector2ToUnityVector2(FBXVector2 v)
 {
     return(new Vector2(v.x, v.y));
 }
예제 #8
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FBXVector2 obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }