Skip to content

Commit 75e7ea3

Browse files
authored
Uni-48530-fdg_for_fbxsdk (#420)
Sync'ed with the FbxSharp FDG work (copied generated scripts over)
1 parent 6122206 commit 75e7ea3

File tree

110 files changed

+2714
-2386
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+2714
-2386
lines changed

Packages/com.unity.formats.fbxsdk/Scripts/FbxAMatrix.cs

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace UnityEngine.Formats.FbxSdk {
1313
public class FbxAMatrix : FbxDouble4x4 {
1414
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1515

16-
internal FbxAMatrix(global::System.IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.FbxAMatrix_SWIGUpcast(cPtr), cMemoryOwn) {
16+
internal FbxAMatrix(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxAMatrix_SWIGUpcast(cPtr), cMemoryOwn) {
1717
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1818
}
1919

@@ -30,7 +30,7 @@ public override void Dispose() {
3030
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
3131
if (swigCMemOwn) {
3232
swigCMemOwn = false;
33-
GlobalsPINVOKE.delete_FbxAMatrix(swigCPtr);
33+
NativeMethods.delete_FbxAMatrix(swigCPtr);
3434
}
3535
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
3636
}
@@ -39,174 +39,174 @@ public override void Dispose() {
3939
}
4040
}
4141

42-
public FbxAMatrix() : this(GlobalsPINVOKE.new_FbxAMatrix__SWIG_0(), true) {
42+
public FbxAMatrix() : this(NativeMethods.new_FbxAMatrix__SWIG_0(), true) {
4343
}
4444

45-
public FbxAMatrix(FbxAMatrix pOther) : this(GlobalsPINVOKE.new_FbxAMatrix__SWIG_1(FbxAMatrix.getCPtr(pOther)), true) {
46-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
45+
public FbxAMatrix(FbxAMatrix pOther) : this(NativeMethods.new_FbxAMatrix__SWIG_1(FbxAMatrix.getCPtr(pOther)), true) {
46+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
4747
}
4848

49-
public FbxAMatrix(FbxVector4 pT, FbxVector4 pR, FbxVector4 pS) : this(GlobalsPINVOKE.new_FbxAMatrix__SWIG_2(pT, pR, pS), true) {
49+
public FbxAMatrix(FbxVector4 pT, FbxVector4 pR, FbxVector4 pS) : this(NativeMethods.new_FbxAMatrix__SWIG_2(pT, pR, pS), true) {
5050
}
5151

5252
public double Get(int pY, int pX) {
53-
double ret = GlobalsPINVOKE.FbxAMatrix_Get(swigCPtr, pY, pX);
54-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
53+
double ret = NativeMethods.FbxAMatrix_Get(swigCPtr, pY, pX);
54+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
5555
return ret;
5656
}
5757

5858
public FbxVector4 GetT() {
59-
var ret = GlobalsPINVOKE.FbxAMatrix_GetT(swigCPtr);
60-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
59+
var ret = NativeMethods.FbxAMatrix_GetT(swigCPtr);
60+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
6161
return ret;
6262
}
6363

6464
public FbxVector4 GetR() {
65-
var ret = GlobalsPINVOKE.FbxAMatrix_GetR(swigCPtr);
66-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
65+
var ret = NativeMethods.FbxAMatrix_GetR(swigCPtr);
66+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
6767
return ret;
6868
}
6969

7070
public FbxQuaternion GetQ() {
71-
FbxQuaternion ret = new FbxQuaternion(GlobalsPINVOKE.FbxAMatrix_GetQ(swigCPtr), true);
72-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
71+
FbxQuaternion ret = new FbxQuaternion(NativeMethods.FbxAMatrix_GetQ(swigCPtr), true);
72+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
7373
return ret;
7474
}
7575

7676
public FbxVector4 GetS() {
77-
var ret = GlobalsPINVOKE.FbxAMatrix_GetS(swigCPtr);
78-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
77+
var ret = NativeMethods.FbxAMatrix_GetS(swigCPtr);
78+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
7979
return ret;
8080
}
8181

8282
public FbxVector4 GetRow(int pY) {
83-
var ret = GlobalsPINVOKE.FbxAMatrix_GetRow(swigCPtr, pY);
84-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
83+
var ret = NativeMethods.FbxAMatrix_GetRow(swigCPtr, pY);
84+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
8585
return ret;
8686
}
8787

8888
public FbxVector4 GetColumn(int pX) {
89-
var ret = GlobalsPINVOKE.FbxAMatrix_GetColumn(swigCPtr, pX);
90-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
89+
var ret = NativeMethods.FbxAMatrix_GetColumn(swigCPtr, pX);
90+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
9191
return ret;
9292
}
9393

9494
public void SetIdentity() {
95-
GlobalsPINVOKE.FbxAMatrix_SetIdentity(swigCPtr);
96-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
95+
NativeMethods.FbxAMatrix_SetIdentity(swigCPtr);
96+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
9797
}
9898

9999
public void SetT(FbxVector4 pT) {
100-
GlobalsPINVOKE.FbxAMatrix_SetT(swigCPtr, pT);
101-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
100+
NativeMethods.FbxAMatrix_SetT(swigCPtr, pT);
101+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
102102
}
103103

104104
public void SetR(FbxVector4 pR) {
105-
GlobalsPINVOKE.FbxAMatrix_SetR(swigCPtr, pR);
106-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
105+
NativeMethods.FbxAMatrix_SetR(swigCPtr, pR);
106+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
107107
}
108108

109109
public void SetQ(FbxQuaternion pQ) {
110-
GlobalsPINVOKE.FbxAMatrix_SetQ(swigCPtr, FbxQuaternion.getCPtr(pQ));
111-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
110+
NativeMethods.FbxAMatrix_SetQ(swigCPtr, FbxQuaternion.getCPtr(pQ));
111+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
112112
}
113113

114114
public void SetS(FbxVector4 pS) {
115-
GlobalsPINVOKE.FbxAMatrix_SetS(swigCPtr, pS);
116-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
115+
NativeMethods.FbxAMatrix_SetS(swigCPtr, pS);
116+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
117117
}
118118

119119
public void SetTRS(FbxVector4 pT, FbxVector4 pR, FbxVector4 pS) {
120-
GlobalsPINVOKE.FbxAMatrix_SetTRS(swigCPtr, pT, pR, pS);
121-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
120+
NativeMethods.FbxAMatrix_SetTRS(swigCPtr, pT, pR, pS);
121+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
122122
}
123123

124124
public void SetTQS(FbxVector4 pT, FbxQuaternion pQ, FbxVector4 pS) {
125-
GlobalsPINVOKE.FbxAMatrix_SetTQS(swigCPtr, pT, FbxQuaternion.getCPtr(pQ), pS);
126-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
125+
NativeMethods.FbxAMatrix_SetTQS(swigCPtr, pT, FbxQuaternion.getCPtr(pQ), pS);
126+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
127127
}
128128

129129
private FbxAMatrix operator_Scale(double pValue) {
130-
FbxAMatrix ret = new FbxAMatrix(GlobalsPINVOKE.FbxAMatrix_operator_Scale(swigCPtr, pValue), true);
131-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
130+
FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxAMatrix_operator_Scale(swigCPtr, pValue), true);
131+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
132132
return ret;
133133
}
134134

135135
private FbxAMatrix operator_InvScale(double pValue) {
136-
FbxAMatrix ret = new FbxAMatrix(GlobalsPINVOKE.FbxAMatrix_operator_InvScale(swigCPtr, pValue), true);
137-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
136+
FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxAMatrix_operator_InvScale(swigCPtr, pValue), true);
137+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
138138
return ret;
139139
}
140140

141141
public FbxVector4 MultT(FbxVector4 pVector4) {
142-
var ret = GlobalsPINVOKE.FbxAMatrix_MultT(swigCPtr, pVector4);
143-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
142+
var ret = NativeMethods.FbxAMatrix_MultT(swigCPtr, pVector4);
143+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
144144
return ret;
145145
}
146146

147147
public FbxVector4 MultR(FbxVector4 pVector4) {
148-
var ret = GlobalsPINVOKE.FbxAMatrix_MultR(swigCPtr, pVector4);
149-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
148+
var ret = NativeMethods.FbxAMatrix_MultR(swigCPtr, pVector4);
149+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
150150
return ret;
151151
}
152152

153153
public FbxQuaternion MultQ(FbxQuaternion pQuaternion) {
154-
FbxQuaternion ret = new FbxQuaternion(GlobalsPINVOKE.FbxAMatrix_MultQ(swigCPtr, FbxQuaternion.getCPtr(pQuaternion)), true);
155-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
154+
FbxQuaternion ret = new FbxQuaternion(NativeMethods.FbxAMatrix_MultQ(swigCPtr, FbxQuaternion.getCPtr(pQuaternion)), true);
155+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
156156
return ret;
157157
}
158158

159159
public FbxVector4 MultS(FbxVector4 pVector4) {
160-
var ret = GlobalsPINVOKE.FbxAMatrix_MultS(swigCPtr, pVector4);
161-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
160+
var ret = NativeMethods.FbxAMatrix_MultS(swigCPtr, pVector4);
161+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
162162
return ret;
163163
}
164164

165165
private FbxAMatrix operator_Negate() {
166-
FbxAMatrix ret = new FbxAMatrix(GlobalsPINVOKE.FbxAMatrix_operator_Negate(swigCPtr), true);
167-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
166+
FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxAMatrix_operator_Negate(swigCPtr), true);
167+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
168168
return ret;
169169
}
170170

171171
private FbxAMatrix operator_Mul(FbxAMatrix pOther) {
172-
FbxAMatrix ret = new FbxAMatrix(GlobalsPINVOKE.FbxAMatrix_operator_Mul(swigCPtr, FbxAMatrix.getCPtr(pOther)), true);
173-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
172+
FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxAMatrix_operator_Mul(swigCPtr, FbxAMatrix.getCPtr(pOther)), true);
173+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
174174
return ret;
175175
}
176176

177177
public FbxAMatrix Inverse() {
178-
FbxAMatrix ret = new FbxAMatrix(GlobalsPINVOKE.FbxAMatrix_Inverse(swigCPtr), true);
179-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
178+
FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxAMatrix_Inverse(swigCPtr), true);
179+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
180180
return ret;
181181
}
182182

183183
public FbxAMatrix Transpose() {
184-
FbxAMatrix ret = new FbxAMatrix(GlobalsPINVOKE.FbxAMatrix_Transpose(swigCPtr), true);
185-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
184+
FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxAMatrix_Transpose(swigCPtr), true);
185+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
186186
return ret;
187187
}
188188

189189
public FbxAMatrix Slerp(FbxAMatrix pOther, double pWeight) {
190-
FbxAMatrix ret = new FbxAMatrix(GlobalsPINVOKE.FbxAMatrix_Slerp(swigCPtr, FbxAMatrix.getCPtr(pOther), pWeight), true);
191-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
190+
FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxAMatrix_Slerp(swigCPtr, FbxAMatrix.getCPtr(pOther), pWeight), true);
191+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
192192
return ret;
193193
}
194194

195195
private bool _equals(FbxAMatrix pOther) {
196-
bool ret = GlobalsPINVOKE.FbxAMatrix__equals(swigCPtr, FbxAMatrix.getCPtr(pOther));
197-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
196+
bool ret = NativeMethods.FbxAMatrix__equals(swigCPtr, FbxAMatrix.getCPtr(pOther));
197+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
198198
return ret;
199199
}
200200

201201
public bool IsIdentity(double pThreshold) {
202-
bool ret = GlobalsPINVOKE.FbxAMatrix_IsIdentity__SWIG_0(swigCPtr, pThreshold);
203-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
202+
bool ret = NativeMethods.FbxAMatrix_IsIdentity__SWIG_0(swigCPtr, pThreshold);
203+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
204204
return ret;
205205
}
206206

207207
public bool IsIdentity() {
208-
bool ret = GlobalsPINVOKE.FbxAMatrix_IsIdentity__SWIG_1(swigCPtr);
209-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
208+
bool ret = NativeMethods.FbxAMatrix_IsIdentity__SWIG_1(swigCPtr);
209+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
210210
return ret;
211211
}
212212

@@ -260,8 +260,8 @@ public override bool Equals(object obj){
260260
}
261261

262262
public override int GetHashCode() {
263-
int ret = GlobalsPINVOKE.FbxAMatrix_GetHashCode(swigCPtr);
264-
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
263+
int ret = NativeMethods.FbxAMatrix_GetHashCode(swigCPtr);
264+
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
265265
return ret;
266266
}
267267

0 commit comments

Comments
 (0)