Update of C#/.NET bindings plus working Managed DirectX Viewer that displays standard DirectX Fixed Function Materials (Ambient, Diffuse, Specular, Emissive) and the first set of texture coordinates if contained in the model.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@782 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 2.0.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
@@ -36,7 +36,7 @@ public class aiVector3DVectorVector : IDisposable, System.Collections.IEnumerabl
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
Assimp_NETPINVOKE.delete_aiVector3DVectorVector(swigCPtr);
|
||||
AssimpPINVOKE.delete_aiVector3DVectorVector(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
@@ -221,107 +221,107 @@ public class aiVector3DVectorVector : IDisposable, System.Collections.IEnumerabl
|
||||
}
|
||||
|
||||
public void Clear() {
|
||||
Assimp_NETPINVOKE.aiVector3DVectorVector_Clear(swigCPtr);
|
||||
AssimpPINVOKE.aiVector3DVectorVector_Clear(swigCPtr);
|
||||
}
|
||||
|
||||
public void Add(aiVector3DVector x) {
|
||||
Assimp_NETPINVOKE.aiVector3DVectorVector_Add(swigCPtr, aiVector3DVector.getCPtr(x));
|
||||
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
|
||||
AssimpPINVOKE.aiVector3DVectorVector_Add(swigCPtr, aiVector3DVector.getCPtr(x));
|
||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
private uint size() {
|
||||
uint ret = Assimp_NETPINVOKE.aiVector3DVectorVector_size(swigCPtr);
|
||||
uint ret = AssimpPINVOKE.aiVector3DVectorVector_size(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
private uint capacity() {
|
||||
uint ret = Assimp_NETPINVOKE.aiVector3DVectorVector_capacity(swigCPtr);
|
||||
uint ret = AssimpPINVOKE.aiVector3DVectorVector_capacity(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
private void reserve(uint n) {
|
||||
Assimp_NETPINVOKE.aiVector3DVectorVector_reserve(swigCPtr, n);
|
||||
AssimpPINVOKE.aiVector3DVectorVector_reserve(swigCPtr, n);
|
||||
}
|
||||
|
||||
public aiVector3DVectorVector() : this(Assimp_NETPINVOKE.new_aiVector3DVectorVector__SWIG_0(), true) {
|
||||
public aiVector3DVectorVector() : this(AssimpPINVOKE.new_aiVector3DVectorVector__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public aiVector3DVectorVector(aiVector3DVectorVector other) : this(Assimp_NETPINVOKE.new_aiVector3DVectorVector__SWIG_1(aiVector3DVectorVector.getCPtr(other)), true) {
|
||||
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
|
||||
public aiVector3DVectorVector(aiVector3DVectorVector other) : this(AssimpPINVOKE.new_aiVector3DVectorVector__SWIG_1(aiVector3DVectorVector.getCPtr(other)), true) {
|
||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public aiVector3DVectorVector(int capacity) : this(Assimp_NETPINVOKE.new_aiVector3DVectorVector__SWIG_2(capacity), true) {
|
||||
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
|
||||
public aiVector3DVectorVector(int capacity) : this(AssimpPINVOKE.new_aiVector3DVectorVector__SWIG_2(capacity), true) {
|
||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
private aiVector3DVector getitemcopy(int index) {
|
||||
aiVector3DVector ret = new aiVector3DVector(Assimp_NETPINVOKE.aiVector3DVectorVector_getitemcopy(swigCPtr, index), true);
|
||||
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
|
||||
aiVector3DVector ret = new aiVector3DVector(AssimpPINVOKE.aiVector3DVectorVector_getitemcopy(swigCPtr, index), true);
|
||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
private aiVector3DVector getitem(int index) {
|
||||
aiVector3DVector ret = new aiVector3DVector(Assimp_NETPINVOKE.aiVector3DVectorVector_getitem(swigCPtr, index), false);
|
||||
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
|
||||
aiVector3DVector ret = new aiVector3DVector(AssimpPINVOKE.aiVector3DVectorVector_getitem(swigCPtr, index), false);
|
||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
private void setitem(int index, aiVector3DVector val) {
|
||||
Assimp_NETPINVOKE.aiVector3DVectorVector_setitem(swigCPtr, index, aiVector3DVector.getCPtr(val));
|
||||
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
|
||||
AssimpPINVOKE.aiVector3DVectorVector_setitem(swigCPtr, index, aiVector3DVector.getCPtr(val));
|
||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void AddRange(aiVector3DVectorVector values) {
|
||||
Assimp_NETPINVOKE.aiVector3DVectorVector_AddRange(swigCPtr, aiVector3DVectorVector.getCPtr(values));
|
||||
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
|
||||
AssimpPINVOKE.aiVector3DVectorVector_AddRange(swigCPtr, aiVector3DVectorVector.getCPtr(values));
|
||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public aiVector3DVectorVector GetRange(int index, int count) {
|
||||
IntPtr cPtr = Assimp_NETPINVOKE.aiVector3DVectorVector_GetRange(swigCPtr, index, count);
|
||||
IntPtr cPtr = AssimpPINVOKE.aiVector3DVectorVector_GetRange(swigCPtr, index, count);
|
||||
aiVector3DVectorVector ret = (cPtr == IntPtr.Zero) ? null : new aiVector3DVectorVector(cPtr, true);
|
||||
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
|
||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Insert(int index, aiVector3DVector x) {
|
||||
Assimp_NETPINVOKE.aiVector3DVectorVector_Insert(swigCPtr, index, aiVector3DVector.getCPtr(x));
|
||||
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
|
||||
AssimpPINVOKE.aiVector3DVectorVector_Insert(swigCPtr, index, aiVector3DVector.getCPtr(x));
|
||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void InsertRange(int index, aiVector3DVectorVector values) {
|
||||
Assimp_NETPINVOKE.aiVector3DVectorVector_InsertRange(swigCPtr, index, aiVector3DVectorVector.getCPtr(values));
|
||||
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
|
||||
AssimpPINVOKE.aiVector3DVectorVector_InsertRange(swigCPtr, index, aiVector3DVectorVector.getCPtr(values));
|
||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void RemoveAt(int index) {
|
||||
Assimp_NETPINVOKE.aiVector3DVectorVector_RemoveAt(swigCPtr, index);
|
||||
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
|
||||
AssimpPINVOKE.aiVector3DVectorVector_RemoveAt(swigCPtr, index);
|
||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void RemoveRange(int index, int count) {
|
||||
Assimp_NETPINVOKE.aiVector3DVectorVector_RemoveRange(swigCPtr, index, count);
|
||||
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
|
||||
AssimpPINVOKE.aiVector3DVectorVector_RemoveRange(swigCPtr, index, count);
|
||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public static aiVector3DVectorVector Repeat(aiVector3DVector value, int count) {
|
||||
IntPtr cPtr = Assimp_NETPINVOKE.aiVector3DVectorVector_Repeat(aiVector3DVector.getCPtr(value), count);
|
||||
IntPtr cPtr = AssimpPINVOKE.aiVector3DVectorVector_Repeat(aiVector3DVector.getCPtr(value), count);
|
||||
aiVector3DVectorVector ret = (cPtr == IntPtr.Zero) ? null : new aiVector3DVectorVector(cPtr, true);
|
||||
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
|
||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Reverse() {
|
||||
Assimp_NETPINVOKE.aiVector3DVectorVector_Reverse__SWIG_0(swigCPtr);
|
||||
AssimpPINVOKE.aiVector3DVectorVector_Reverse__SWIG_0(swigCPtr);
|
||||
}
|
||||
|
||||
public void Reverse(int index, int count) {
|
||||
Assimp_NETPINVOKE.aiVector3DVectorVector_Reverse__SWIG_1(swigCPtr, index, count);
|
||||
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
|
||||
AssimpPINVOKE.aiVector3DVectorVector_Reverse__SWIG_1(swigCPtr, index, count);
|
||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void SetRange(int index, aiVector3DVectorVector values) {
|
||||
Assimp_NETPINVOKE.aiVector3DVectorVector_SetRange(swigCPtr, index, aiVector3DVectorVector.getCPtr(values));
|
||||
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
|
||||
AssimpPINVOKE.aiVector3DVectorVector_SetRange(swigCPtr, index, aiVector3DVectorVector.getCPtr(values));
|
||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user