Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 
 

89 Zeilen
2.4 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 aiBone : IDisposable {
  11. private HandleRef swigCPtr;
  12. protected bool swigCMemOwn;
  13. internal aiBone(IntPtr cPtr, bool cMemoryOwn) {
  14. swigCMemOwn = cMemoryOwn;
  15. swigCPtr = new HandleRef(this, cPtr);
  16. }
  17. internal static HandleRef getCPtr(aiBone obj) {
  18. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  19. }
  20. ~aiBone() {
  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_aiBone(swigCPtr);
  29. }
  30. swigCPtr = new HandleRef(null, IntPtr.Zero);
  31. }
  32. GC.SuppressFinalize(this);
  33. }
  34. }
  35. public aiString mName {
  36. set {
  37. AssimpPINVOKE.aiBone_mName_set(swigCPtr, aiString.getCPtr(value));
  38. }
  39. get {
  40. IntPtr cPtr = AssimpPINVOKE.aiBone_mName_get(swigCPtr);
  41. aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
  42. return ret;
  43. }
  44. }
  45. public uint mNumWeights {
  46. set {
  47. AssimpPINVOKE.aiBone_mNumWeights_set(swigCPtr, value);
  48. }
  49. get {
  50. uint ret = AssimpPINVOKE.aiBone_mNumWeights_get(swigCPtr);
  51. return ret;
  52. }
  53. }
  54. public aiMatrix4x4 mOffsetMatrix {
  55. set {
  56. AssimpPINVOKE.aiBone_mOffsetMatrix_set(swigCPtr, aiMatrix4x4.getCPtr(value));
  57. }
  58. get {
  59. IntPtr cPtr = AssimpPINVOKE.aiBone_mOffsetMatrix_get(swigCPtr);
  60. aiMatrix4x4 ret = (cPtr == IntPtr.Zero) ? null : new aiMatrix4x4(cPtr, false);
  61. return ret;
  62. }
  63. }
  64. public aiBone() : this(AssimpPINVOKE.new_aiBone__SWIG_0(), true) {
  65. }
  66. public aiBone(aiBone other) : this(AssimpPINVOKE.new_aiBone__SWIG_1(aiBone.getCPtr(other)), true) {
  67. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  68. }
  69. private aiVertexWeightVector GetmWeights() {
  70. IntPtr cPtr = AssimpPINVOKE.aiBone_GetmWeights(swigCPtr);
  71. aiVertexWeightVector ret = (cPtr == IntPtr.Zero) ? null : new aiVertexWeightVector(cPtr, true);
  72. return ret;
  73. }
  74. }