2010-05-27 18:28:02 +00:00
|
|
|
/* ----------------------------------------------------------------------------
|
|
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
2010-11-23 08:45:32 +00:00
|
|
|
* Version 2.0.1
|
2010-05-27 18:28:02 +00:00
|
|
|
*
|
|
|
|
* 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 aiAnimMesh : IDisposable {
|
|
|
|
private HandleRef swigCPtr;
|
|
|
|
protected bool swigCMemOwn;
|
|
|
|
|
|
|
|
internal aiAnimMesh(IntPtr cPtr, bool cMemoryOwn) {
|
|
|
|
swigCMemOwn = cMemoryOwn;
|
|
|
|
swigCPtr = new HandleRef(this, cPtr);
|
|
|
|
}
|
|
|
|
|
|
|
|
internal static HandleRef getCPtr(aiAnimMesh obj) {
|
|
|
|
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
|
|
}
|
|
|
|
|
|
|
|
~aiAnimMesh() {
|
|
|
|
Dispose();
|
|
|
|
}
|
|
|
|
|
|
|
|
public virtual void Dispose() {
|
|
|
|
lock(this) {
|
|
|
|
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
|
|
if (swigCMemOwn) {
|
|
|
|
swigCMemOwn = false;
|
2010-07-12 13:13:43 +00:00
|
|
|
AssimpPINVOKE.delete_aiAnimMesh(swigCPtr);
|
2010-05-27 18:28:02 +00:00
|
|
|
}
|
|
|
|
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
|
|
}
|
|
|
|
GC.SuppressFinalize(this);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public aiVector3D mBitangents {
|
|
|
|
set {
|
2010-07-12 13:13:43 +00:00
|
|
|
AssimpPINVOKE.aiAnimMesh_mBitangents_set(swigCPtr, aiVector3D.getCPtr(value));
|
2010-05-27 18:28:02 +00:00
|
|
|
}
|
|
|
|
get {
|
2010-07-12 13:13:43 +00:00
|
|
|
IntPtr cPtr = AssimpPINVOKE.aiAnimMesh_mBitangents_get(swigCPtr);
|
2010-05-27 18:28:02 +00:00
|
|
|
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-08-06 18:41:05 +00:00
|
|
|
public uint mNumVertices {
|
|
|
|
set {
|
|
|
|
AssimpPINVOKE.aiAnimMesh_mNumVertices_set(swigCPtr, value);
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
uint ret = AssimpPINVOKE.aiAnimMesh_mNumVertices_get(swigCPtr);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-07-12 13:13:43 +00:00
|
|
|
public aiAnimMesh() : this(AssimpPINVOKE.new_aiAnimMesh(), true) {
|
2010-05-27 18:28:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public bool HasPositions() {
|
2010-07-12 13:13:43 +00:00
|
|
|
bool ret = AssimpPINVOKE.aiAnimMesh_HasPositions(swigCPtr);
|
2010-05-27 18:28:02 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public bool HasNormals() {
|
2010-07-12 13:13:43 +00:00
|
|
|
bool ret = AssimpPINVOKE.aiAnimMesh_HasNormals(swigCPtr);
|
2010-05-27 18:28:02 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public bool HasTangentsAndBitangents() {
|
2010-07-12 13:13:43 +00:00
|
|
|
bool ret = AssimpPINVOKE.aiAnimMesh_HasTangentsAndBitangents(swigCPtr);
|
2010-05-27 18:28:02 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public bool HasVertexColors(uint pIndex) {
|
2010-07-12 13:13:43 +00:00
|
|
|
bool ret = AssimpPINVOKE.aiAnimMesh_HasVertexColors(swigCPtr, pIndex);
|
2010-05-27 18:28:02 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public bool HasTextureCoords(uint pIndex) {
|
2010-07-12 13:13:43 +00:00
|
|
|
bool ret = AssimpPINVOKE.aiAnimMesh_HasTextureCoords(swigCPtr, pIndex);
|
2010-05-27 18:28:02 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|