Skip to content

Commit b77c456

Browse files
author
David Lassonde
committed
Updating the c# scripts (FbxSharp -> FbxExporters)
1 parent 1271bd3 commit b77c456

File tree

3 files changed

+130
-0
lines changed

3 files changed

+130
-0
lines changed

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,14 @@ public FbxPropertyDouble AspectHeight {
117117
}
118118
}
119119

120+
public FbxPropertyEGateFit GateFit {
121+
get {
122+
FbxPropertyEGateFit ret = new FbxPropertyEGateFit(GlobalsPINVOKE.FbxCamera_GateFit_get(swigCPtr), false);
123+
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
124+
return ret;
125+
}
126+
}
127+
120128
public FbxPropertyDouble FieldOfView {
121129
get {
122130
FbxPropertyDouble ret = new FbxPropertyDouble(GlobalsPINVOKE.FbxCamera_FieldOfView_get(swigCPtr), false);
@@ -149,6 +157,22 @@ public FbxPropertyDouble FilmAspectRatio {
149157
}
150158
}
151159

160+
public FbxPropertyDouble FilmOffsetX {
161+
get {
162+
FbxPropertyDouble ret = new FbxPropertyDouble(GlobalsPINVOKE.FbxCamera_FilmOffsetX_get(swigCPtr), false);
163+
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
164+
return ret;
165+
}
166+
}
167+
168+
public FbxPropertyDouble FilmOffsetY {
169+
get {
170+
FbxPropertyDouble ret = new FbxPropertyDouble(GlobalsPINVOKE.FbxCamera_FilmOffsetY_get(swigCPtr), false);
171+
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
172+
return ret;
173+
}
174+
}
175+
152176
public FbxPropertyEProjectionType ProjectionType {
153177
get {
154178
FbxPropertyEProjectionType ret = new FbxPropertyEProjectionType(GlobalsPINVOKE.FbxCamera_ProjectionType_get(swigCPtr), false);
@@ -211,6 +235,15 @@ public enum EApertureMode {
211235
eFocalLength
212236
}
213237

238+
public enum EGateFit {
239+
eFitNone,
240+
eFitVertical,
241+
eFitHorizontal,
242+
eFitFill,
243+
eFitOverscan,
244+
eFitStretch
245+
}
246+
214247
}
215248

216249
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
//------------------------------------------------------------------------------
2+
// <auto-generated />
3+
//
4+
// This file was automatically generated by SWIG (http://www.swig.org).
5+
// Version 3.0.12
6+
//
7+
// Do not make changes to this file unless you know what you are doing--modify
8+
// the SWIG interface file instead.
9+
//------------------------------------------------------------------------------
10+
11+
namespace Unity.FbxSdk {
12+
13+
public class FbxPropertyEGateFit : FbxProperty {
14+
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15+
16+
internal FbxPropertyEGateFit(global::System.IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.FbxPropertyEGateFit_SWIGUpcast(cPtr), cMemoryOwn) {
17+
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
18+
}
19+
20+
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxPropertyEGateFit obj) {
21+
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
22+
}
23+
24+
public override void Dispose() {
25+
lock(this) {
26+
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
27+
if (swigCMemOwn) {
28+
swigCMemOwn = false;
29+
throw new global::System.MethodAccessException("C++ destructor does not have public access");
30+
}
31+
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
32+
}
33+
global::System.GC.SuppressFinalize(this);
34+
base.Dispose();
35+
}
36+
}
37+
38+
public FbxPropertyEGateFit Set(FbxCamera.EGateFit pValue) {
39+
FbxPropertyEGateFit ret = new FbxPropertyEGateFit(GlobalsPINVOKE.FbxPropertyEGateFit_Set(swigCPtr, (int)pValue), false);
40+
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
41+
return ret;
42+
}
43+
44+
public FbxCamera.EGateFit Get() {
45+
FbxCamera.EGateFit ret = (FbxCamera.EGateFit)GlobalsPINVOKE.FbxPropertyEGateFit_Get(swigCPtr);
46+
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
47+
return ret;
48+
}
49+
50+
public FbxCamera.EGateFit EvaluateValue(FbxTime pTime, bool pForceEval) {
51+
FbxCamera.EGateFit ret = (FbxCamera.EGateFit)GlobalsPINVOKE.FbxPropertyEGateFit_EvaluateValue__SWIG_0(swigCPtr, FbxTime.getCPtr(pTime), pForceEval);
52+
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
53+
return ret;
54+
}
55+
56+
public FbxCamera.EGateFit EvaluateValue(FbxTime pTime) {
57+
FbxCamera.EGateFit ret = (FbxCamera.EGateFit)GlobalsPINVOKE.FbxPropertyEGateFit_EvaluateValue__SWIG_1(swigCPtr, FbxTime.getCPtr(pTime));
58+
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
59+
return ret;
60+
}
61+
62+
public FbxCamera.EGateFit EvaluateValue() {
63+
FbxCamera.EGateFit ret = (FbxCamera.EGateFit)GlobalsPINVOKE.FbxPropertyEGateFit_EvaluateValue__SWIG_2(swigCPtr);
64+
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
65+
return ret;
66+
}
67+
68+
}
69+
70+
}

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,21 @@ private static int InitFbxAllocators()
694694
[global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_UnityfFbxSdk_FbxPropertyEWrapMode_EvaluateValue__SWIG_2___")]
695695
public static extern int FbxPropertyEWrapMode_EvaluateValue__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1);
696696

697+
[global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_UnityfFbxSdk_FbxPropertyEGateFit_Set___")]
698+
public static extern global::System.IntPtr FbxPropertyEGateFit_Set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
699+
700+
[global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_UnityfFbxSdk_FbxPropertyEGateFit_Get___")]
701+
public static extern int FbxPropertyEGateFit_Get(global::System.Runtime.InteropServices.HandleRef jarg1);
702+
703+
[global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_UnityfFbxSdk_FbxPropertyEGateFit_EvaluateValue__SWIG_0___")]
704+
public static extern int FbxPropertyEGateFit_EvaluateValue__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3);
705+
706+
[global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_UnityfFbxSdk_FbxPropertyEGateFit_EvaluateValue__SWIG_1___")]
707+
public static extern int FbxPropertyEGateFit_EvaluateValue__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
708+
709+
[global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_UnityfFbxSdk_FbxPropertyEGateFit_EvaluateValue__SWIG_2___")]
710+
public static extern int FbxPropertyEGateFit_EvaluateValue__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1);
711+
697712
[global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_UnityfFbxSdk_FbxLayerElement_SetMappingMode___")]
698713
public static extern void FbxLayerElement_SetMappingMode(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
699714

@@ -3657,6 +3672,9 @@ private static int InitFbxAllocators()
36573672
[global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_UnityfFbxSdk_FbxCamera_AspectHeight_get___")]
36583673
public static extern global::System.IntPtr FbxCamera_AspectHeight_get(global::System.Runtime.InteropServices.HandleRef jarg1);
36593674

3675+
[global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_UnityfFbxSdk_FbxCamera_GateFit_get___")]
3676+
public static extern global::System.IntPtr FbxCamera_GateFit_get(global::System.Runtime.InteropServices.HandleRef jarg1);
3677+
36603678
[global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_UnityfFbxSdk_FbxCamera_FieldOfView_get___")]
36613679
public static extern global::System.IntPtr FbxCamera_FieldOfView_get(global::System.Runtime.InteropServices.HandleRef jarg1);
36623680

@@ -3669,6 +3687,12 @@ private static int InitFbxAllocators()
36693687
[global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_UnityfFbxSdk_FbxCamera_FilmAspectRatio_get___")]
36703688
public static extern global::System.IntPtr FbxCamera_FilmAspectRatio_get(global::System.Runtime.InteropServices.HandleRef jarg1);
36713689

3690+
[global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_UnityfFbxSdk_FbxCamera_FilmOffsetX_get___")]
3691+
public static extern global::System.IntPtr FbxCamera_FilmOffsetX_get(global::System.Runtime.InteropServices.HandleRef jarg1);
3692+
3693+
[global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_UnityfFbxSdk_FbxCamera_FilmOffsetY_get___")]
3694+
public static extern global::System.IntPtr FbxCamera_FilmOffsetY_get(global::System.Runtime.InteropServices.HandleRef jarg1);
3695+
36723696
[global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_UnityfFbxSdk_FbxCamera_ProjectionType_get___")]
36733697
public static extern global::System.IntPtr FbxCamera_ProjectionType_get(global::System.Runtime.InteropServices.HandleRef jarg1);
36743698

@@ -4186,6 +4210,9 @@ private static int InitFbxAllocators()
41864210
[global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_UnityfFbxSdk_FbxPropertyEWrapMode_SWIGUpcast___")]
41874211
public static extern global::System.IntPtr FbxPropertyEWrapMode_SWIGUpcast(global::System.IntPtr jarg1);
41884212

4213+
[global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_UnityfFbxSdk_FbxPropertyEGateFit_SWIGUpcast___")]
4214+
public static extern global::System.IntPtr FbxPropertyEGateFit_SWIGUpcast(global::System.IntPtr jarg1);
4215+
41894216
[global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_UnityfFbxSdk_FbxLayerElementTemplateFbxVector4_SWIGUpcast___")]
41904217
public static extern global::System.IntPtr FbxLayerElementTemplateFbxVector4_SWIGUpcast(global::System.IntPtr jarg1);
41914218

0 commit comments

Comments
 (0)