93 lines
2.5 KiB
C#
93 lines
2.5 KiB
C#
/* ----------------------------------------------------------------------------
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
* Version 2.0.1
|
|
*
|
|
* 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;
|
|
AssimpPINVOKE.delete_aiAnimMesh(swigCPtr);
|
|
}
|
|
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
}
|
|
GC.SuppressFinalize(this);
|
|
}
|
|
}
|
|
|
|
public aiVector3D mBitangents {
|
|
set {
|
|
AssimpPINVOKE.aiAnimMesh_mBitangents_set(swigCPtr, aiVector3D.getCPtr(value));
|
|
}
|
|
get {
|
|
IntPtr cPtr = AssimpPINVOKE.aiAnimMesh_mBitangents_get(swigCPtr);
|
|
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
public uint mNumVertices {
|
|
set {
|
|
AssimpPINVOKE.aiAnimMesh_mNumVertices_set(swigCPtr, value);
|
|
}
|
|
get {
|
|
uint ret = AssimpPINVOKE.aiAnimMesh_mNumVertices_get(swigCPtr);
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
public aiAnimMesh() : this(AssimpPINVOKE.new_aiAnimMesh(), true) {
|
|
}
|
|
|
|
public bool HasPositions() {
|
|
bool ret = AssimpPINVOKE.aiAnimMesh_HasPositions(swigCPtr);
|
|
return ret;
|
|
}
|
|
|
|
public bool HasNormals() {
|
|
bool ret = AssimpPINVOKE.aiAnimMesh_HasNormals(swigCPtr);
|
|
return ret;
|
|
}
|
|
|
|
public bool HasTangentsAndBitangents() {
|
|
bool ret = AssimpPINVOKE.aiAnimMesh_HasTangentsAndBitangents(swigCPtr);
|
|
return ret;
|
|
}
|
|
|
|
public bool HasVertexColors(uint pIndex) {
|
|
bool ret = AssimpPINVOKE.aiAnimMesh_HasVertexColors(swigCPtr, pIndex);
|
|
return ret;
|
|
}
|
|
|
|
public bool HasTextureCoords(uint pIndex) {
|
|
bool ret = AssimpPINVOKE.aiAnimMesh_HasTextureCoords(swigCPtr, pIndex);
|
|
return ret;
|
|
}
|
|
|
|
}
|