/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 1.3.40 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ using System; using System.Runtime.InteropServices; public class aiFace : IDisposable { private HandleRef swigCPtr; protected bool swigCMemOwn; internal aiFace(IntPtr cPtr, bool cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = new HandleRef(this, cPtr); } internal static HandleRef getCPtr(aiFace obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; } ~aiFace() { Dispose(); } public virtual void Dispose() { lock(this) { if (swigCPtr.Handle != IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; Assimp_NETPINVOKE.delete_aiFace(swigCPtr); } swigCPtr = new HandleRef(null, IntPtr.Zero); } GC.SuppressFinalize(this); } } public uint mNumIndices { set { Assimp_NETPINVOKE.aiFace_mNumIndices_set(swigCPtr, value); } get { uint ret = Assimp_NETPINVOKE.aiFace_mNumIndices_get(swigCPtr); return ret; } } public SWIGTYPE_p_unsigned_int mIndices { set { Assimp_NETPINVOKE.aiFace_mIndices_set(swigCPtr, SWIGTYPE_p_unsigned_int.getCPtr(value)); } get { IntPtr cPtr = Assimp_NETPINVOKE.aiFace_mIndices_get(swigCPtr); SWIGTYPE_p_unsigned_int ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_int(cPtr, false); return ret; } } public aiFace() : this(Assimp_NETPINVOKE.new_aiFace__SWIG_0(), true) { } public aiFace(aiFace o) : this(Assimp_NETPINVOKE.new_aiFace__SWIG_1(aiFace.getCPtr(o)), true) { if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); } public aiFace __set__(aiFace o) { aiFace ret = new aiFace(Assimp_NETPINVOKE.aiFace___set__(swigCPtr, aiFace.getCPtr(o)), false); if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); return ret; } public bool __equal__(aiFace o) { bool ret = Assimp_NETPINVOKE.aiFace___equal__(swigCPtr, aiFace.getCPtr(o)); if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); return ret; } public bool __nequal__(aiFace o) { bool ret = Assimp_NETPINVOKE.aiFace___nequal__(swigCPtr, aiFace.getCPtr(o)); if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); return ret; } }