99 lines
2.6 KiB
C#
99 lines
2.6 KiB
C#
/* ----------------------------------------------------------------------------
|
|
* 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 aiAnimation : IDisposable {
|
|
private HandleRef swigCPtr;
|
|
protected bool swigCMemOwn;
|
|
|
|
internal aiAnimation(IntPtr cPtr, bool cMemoryOwn) {
|
|
swigCMemOwn = cMemoryOwn;
|
|
swigCPtr = new HandleRef(this, cPtr);
|
|
}
|
|
|
|
internal static HandleRef getCPtr(aiAnimation obj) {
|
|
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
}
|
|
|
|
~aiAnimation() {
|
|
Dispose();
|
|
}
|
|
|
|
public virtual void Dispose() {
|
|
lock(this) {
|
|
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
if (swigCMemOwn) {
|
|
swigCMemOwn = false;
|
|
AssimpPINVOKE.delete_aiAnimation(swigCPtr);
|
|
}
|
|
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
}
|
|
GC.SuppressFinalize(this);
|
|
}
|
|
}
|
|
|
|
public aiString mName {
|
|
set {
|
|
AssimpPINVOKE.aiAnimation_mName_set(swigCPtr, aiString.getCPtr(value));
|
|
}
|
|
get {
|
|
IntPtr cPtr = AssimpPINVOKE.aiAnimation_mName_get(swigCPtr);
|
|
aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
public double mDuration {
|
|
set {
|
|
AssimpPINVOKE.aiAnimation_mDuration_set(swigCPtr, value);
|
|
}
|
|
get {
|
|
double ret = AssimpPINVOKE.aiAnimation_mDuration_get(swigCPtr);
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
public double mTicksPerSecond {
|
|
set {
|
|
AssimpPINVOKE.aiAnimation_mTicksPerSecond_set(swigCPtr, value);
|
|
}
|
|
get {
|
|
double ret = AssimpPINVOKE.aiAnimation_mTicksPerSecond_get(swigCPtr);
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
public uint mNumChannels {
|
|
set {
|
|
AssimpPINVOKE.aiAnimation_mNumChannels_set(swigCPtr, value);
|
|
}
|
|
get {
|
|
uint ret = AssimpPINVOKE.aiAnimation_mNumChannels_get(swigCPtr);
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
public SWIGTYPE_p_p_aiNodeAnim mChannels {
|
|
set {
|
|
AssimpPINVOKE.aiAnimation_mChannels_set(swigCPtr, SWIGTYPE_p_p_aiNodeAnim.getCPtr(value));
|
|
}
|
|
get {
|
|
IntPtr cPtr = AssimpPINVOKE.aiAnimation_mChannels_get(swigCPtr);
|
|
SWIGTYPE_p_p_aiNodeAnim ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_aiNodeAnim(cPtr, false);
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
public aiAnimation() : this(AssimpPINVOKE.new_aiAnimation(), true) {
|
|
}
|
|
|
|
}
|