|
- /* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.8
- *
- * 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 aiBone : IDisposable {
- private HandleRef swigCPtr;
- protected bool swigCMemOwn;
-
- internal aiBone(IntPtr cPtr, bool cMemoryOwn) {
- swigCMemOwn = cMemoryOwn;
- swigCPtr = new HandleRef(this, cPtr);
- }
-
- internal static HandleRef getCPtr(aiBone obj) {
- return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
- }
-
- ~aiBone() {
- Dispose();
- }
-
- public virtual void Dispose() {
- lock(this) {
- if (swigCPtr.Handle != IntPtr.Zero) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- AssimpPINVOKE.delete_aiBone(swigCPtr);
- }
- swigCPtr = new HandleRef(null, IntPtr.Zero);
- }
- GC.SuppressFinalize(this);
- }
- }
-
- public aiString mName {
- set {
- AssimpPINVOKE.aiBone_mName_set(swigCPtr, aiString.getCPtr(value));
- }
- get {
- IntPtr cPtr = AssimpPINVOKE.aiBone_mName_get(swigCPtr);
- aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
- return ret;
- }
- }
-
- public uint mNumWeights {
- set {
- AssimpPINVOKE.aiBone_mNumWeights_set(swigCPtr, value);
- }
- get {
- uint ret = AssimpPINVOKE.aiBone_mNumWeights_get(swigCPtr);
- return ret;
- }
- }
-
- public aiMatrix4x4 mOffsetMatrix {
- set {
- AssimpPINVOKE.aiBone_mOffsetMatrix_set(swigCPtr, aiMatrix4x4.getCPtr(value));
- }
- get {
- IntPtr cPtr = AssimpPINVOKE.aiBone_mOffsetMatrix_get(swigCPtr);
- aiMatrix4x4 ret = (cPtr == IntPtr.Zero) ? null : new aiMatrix4x4(cPtr, false);
- return ret;
- }
- }
-
- public aiBone() : this(AssimpPINVOKE.new_aiBone__SWIG_0(), true) {
- }
-
- public aiBone(aiBone other) : this(AssimpPINVOKE.new_aiBone__SWIG_1(aiBone.getCPtr(other)), true) {
- if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
- }
-
- private aiVertexWeightVector GetmWeights() {
- IntPtr cPtr = AssimpPINVOKE.aiBone_GetmWeights(swigCPtr);
- aiVertexWeightVector ret = (cPtr == IntPtr.Zero) ? null : new aiVertexWeightVector(cPtr, true);
- return ret;
- }
-
- }
|