Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

76 rader
2.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 aiMeshAnim : IDisposable {
  11. private HandleRef swigCPtr;
  12. protected bool swigCMemOwn;
  13. internal aiMeshAnim(IntPtr cPtr, bool cMemoryOwn) {
  14. swigCMemOwn = cMemoryOwn;
  15. swigCPtr = new HandleRef(this, cPtr);
  16. }
  17. internal static HandleRef getCPtr(aiMeshAnim obj) {
  18. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  19. }
  20. ~aiMeshAnim() {
  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_aiMeshAnim(swigCPtr);
  29. }
  30. swigCPtr = new HandleRef(null, IntPtr.Zero);
  31. }
  32. GC.SuppressFinalize(this);
  33. }
  34. }
  35. public aiMeshKeyVector mKeys { get { return GetmKeys(); } }
  36. public aiString mName {
  37. set {
  38. AssimpPINVOKE.aiMeshAnim_mName_set(swigCPtr, aiString.getCPtr(value));
  39. }
  40. get {
  41. IntPtr cPtr = AssimpPINVOKE.aiMeshAnim_mName_get(swigCPtr);
  42. aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
  43. return ret;
  44. }
  45. }
  46. public uint mNumKeys {
  47. set {
  48. AssimpPINVOKE.aiMeshAnim_mNumKeys_set(swigCPtr, value);
  49. }
  50. get {
  51. uint ret = AssimpPINVOKE.aiMeshAnim_mNumKeys_get(swigCPtr);
  52. return ret;
  53. }
  54. }
  55. public aiMeshAnim() : this(AssimpPINVOKE.new_aiMeshAnim(), true) {
  56. }
  57. private aiMeshKeyVector GetmKeys() {
  58. IntPtr cPtr = AssimpPINVOKE.aiMeshAnim_GetmKeys(swigCPtr);
  59. aiMeshKeyVector ret = (cPtr == IntPtr.Zero) ? null : new aiMeshKeyVector(cPtr, true);
  60. return ret;
  61. }
  62. }