forked from BilalY/Rasagar
64 lines
2.5 KiB
C#
64 lines
2.5 KiB
C#
|
#if UNITY_EDITOR || FBXSDK_RUNTIME
|
||
|
//------------------------------------------------------------------------------
|
||
|
// <auto-generated />
|
||
|
//
|
||
|
// This file was automatically generated by SWIG (http://www.swig.org).
|
||
|
// Version 3.0.12
|
||
|
//
|
||
|
// Do not make changes to this file unless you know what you are doing--modify
|
||
|
// the SWIG interface file instead.
|
||
|
//------------------------------------------------------------------------------
|
||
|
|
||
|
namespace Autodesk.Fbx {
|
||
|
|
||
|
public class FbxLayerElementArrayTemplateFbxSurfaceMaterial : FbxLayerElementArray {
|
||
|
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
|
||
|
|
||
|
internal FbxLayerElementArrayTemplateFbxSurfaceMaterial(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxLayerElementArrayTemplateFbxSurfaceMaterial_SWIGUpcast(cPtr), cMemoryOwn) {
|
||
|
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
|
||
|
}
|
||
|
|
||
|
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxLayerElementArrayTemplateFbxSurfaceMaterial obj) {
|
||
|
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
|
||
|
}
|
||
|
|
||
|
~FbxLayerElementArrayTemplateFbxSurfaceMaterial() {
|
||
|
Dispose();
|
||
|
}
|
||
|
|
||
|
public override void Dispose() {
|
||
|
lock(this) {
|
||
|
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
|
||
|
if (swigCMemOwn) {
|
||
|
swigCMemOwn = false;
|
||
|
NativeMethods.delete_FbxLayerElementArrayTemplateFbxSurfaceMaterial(swigCPtr);
|
||
|
}
|
||
|
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
|
||
|
}
|
||
|
global::System.GC.SuppressFinalize(this);
|
||
|
base.Dispose();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private FbxSurfaceMaterial GetAtUnchecked(int pIndex) {
|
||
|
global::System.IntPtr cPtr = NativeMethods.FbxLayerElementArrayTemplateFbxSurfaceMaterial_GetAtUnchecked(swigCPtr, pIndex);
|
||
|
FbxSurfaceMaterial ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxSurfaceMaterial(cPtr, false);
|
||
|
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
|
||
|
return ret;
|
||
|
}
|
||
|
|
||
|
public FbxSurfaceMaterial GetAt(int pIndex) {
|
||
|
if (pIndex < 0 || pIndex >= GetCount()) {
|
||
|
throw new System.ArgumentOutOfRangeException("pIndex");
|
||
|
}
|
||
|
return GetAtUnchecked(pIndex);
|
||
|
}
|
||
|
|
||
|
public FbxLayerElementArrayTemplateFbxSurfaceMaterial() : this(NativeMethods.new_FbxLayerElementArrayTemplateFbxSurfaceMaterial(), true) {
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif // UNITY_EDITOR || FBXSDK_RUNTIME
|