No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

113 líneas
3.0 KiB

  1. /* ----------------------------------------------------------------------------
  2. * This file was automatically generated by SWIG (http://www.swig.org).
  3. * Version 2.0.8
  4. *
  5. * Do not make changes to this file unless you know what you are doing--modify
  6. * the SWIG interface file instead.
  7. * ----------------------------------------------------------------------------- */
  8. using System;
  9. using System.Runtime.InteropServices;
  10. public class aiAnimation : IDisposable {
  11. private HandleRef swigCPtr;
  12. protected bool swigCMemOwn;
  13. internal aiAnimation(IntPtr cPtr, bool cMemoryOwn) {
  14. swigCMemOwn = cMemoryOwn;
  15. swigCPtr = new HandleRef(this, cPtr);
  16. }
  17. internal static HandleRef getCPtr(aiAnimation obj) {
  18. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  19. }
  20. ~aiAnimation() {
  21. Dispose();
  22. }
  23. public virtual void Dispose() {
  24. lock(this) {
  25. if (swigCPtr.Handle != IntPtr.Zero) {
  26. if (swigCMemOwn) {
  27. swigCMemOwn = false;
  28. AssimpPINVOKE.delete_aiAnimation(swigCPtr);
  29. }
  30. swigCPtr = new HandleRef(null, IntPtr.Zero);
  31. }
  32. GC.SuppressFinalize(this);
  33. }
  34. }
  35. public aiNodeAnimVector mChannels { get { return GetmChannels(); } }
  36. public aiMeshAnimVector mMeshChannels { get { return GetmMeshChannels(); } }
  37. public aiString mName {
  38. set {
  39. AssimpPINVOKE.aiAnimation_mName_set(swigCPtr, aiString.getCPtr(value));
  40. }
  41. get {
  42. IntPtr cPtr = AssimpPINVOKE.aiAnimation_mName_get(swigCPtr);
  43. aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
  44. return ret;
  45. }
  46. }
  47. public double mDuration {
  48. set {
  49. AssimpPINVOKE.aiAnimation_mDuration_set(swigCPtr, value);
  50. }
  51. get {
  52. double ret = AssimpPINVOKE.aiAnimation_mDuration_get(swigCPtr);
  53. return ret;
  54. }
  55. }
  56. public double mTicksPerSecond {
  57. set {
  58. AssimpPINVOKE.aiAnimation_mTicksPerSecond_set(swigCPtr, value);
  59. }
  60. get {
  61. double ret = AssimpPINVOKE.aiAnimation_mTicksPerSecond_get(swigCPtr);
  62. return ret;
  63. }
  64. }
  65. public uint mNumChannels {
  66. set {
  67. AssimpPINVOKE.aiAnimation_mNumChannels_set(swigCPtr, value);
  68. }
  69. get {
  70. uint ret = AssimpPINVOKE.aiAnimation_mNumChannels_get(swigCPtr);
  71. return ret;
  72. }
  73. }
  74. public uint mNumMeshChannels {
  75. set {
  76. AssimpPINVOKE.aiAnimation_mNumMeshChannels_set(swigCPtr, value);
  77. }
  78. get {
  79. uint ret = AssimpPINVOKE.aiAnimation_mNumMeshChannels_get(swigCPtr);
  80. return ret;
  81. }
  82. }
  83. public aiAnimation() : this(AssimpPINVOKE.new_aiAnimation(), true) {
  84. }
  85. private aiNodeAnimVector GetmChannels() {
  86. IntPtr cPtr = AssimpPINVOKE.aiAnimation_GetmChannels(swigCPtr);
  87. aiNodeAnimVector ret = (cPtr == IntPtr.Zero) ? null : new aiNodeAnimVector(cPtr, true);
  88. return ret;
  89. }
  90. private aiMeshAnimVector GetmMeshChannels() {
  91. IntPtr cPtr = AssimpPINVOKE.aiAnimation_GetmMeshChannels(swigCPtr);
  92. aiMeshAnimVector ret = (cPtr == IntPtr.Zero) ? null : new aiMeshAnimVector(cPtr, true);
  93. return ret;
  94. }
  95. }