You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

108 lines
2.7 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 aiMaterialProperty : IDisposable {
  11. private HandleRef swigCPtr;
  12. protected bool swigCMemOwn;
  13. internal aiMaterialProperty(IntPtr cPtr, bool cMemoryOwn) {
  14. swigCMemOwn = cMemoryOwn;
  15. swigCPtr = new HandleRef(this, cPtr);
  16. }
  17. internal static HandleRef getCPtr(aiMaterialProperty obj) {
  18. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  19. }
  20. ~aiMaterialProperty() {
  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_aiMaterialProperty(swigCPtr);
  29. }
  30. swigCPtr = new HandleRef(null, IntPtr.Zero);
  31. }
  32. GC.SuppressFinalize(this);
  33. }
  34. }
  35. public aiString mKey {
  36. set {
  37. AssimpPINVOKE.aiMaterialProperty_mKey_set(swigCPtr, aiString.getCPtr(value));
  38. }
  39. get {
  40. IntPtr cPtr = AssimpPINVOKE.aiMaterialProperty_mKey_get(swigCPtr);
  41. aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
  42. return ret;
  43. }
  44. }
  45. public uint mSemantic {
  46. set {
  47. AssimpPINVOKE.aiMaterialProperty_mSemantic_set(swigCPtr, value);
  48. }
  49. get {
  50. uint ret = AssimpPINVOKE.aiMaterialProperty_mSemantic_get(swigCPtr);
  51. return ret;
  52. }
  53. }
  54. public uint mIndex {
  55. set {
  56. AssimpPINVOKE.aiMaterialProperty_mIndex_set(swigCPtr, value);
  57. }
  58. get {
  59. uint ret = AssimpPINVOKE.aiMaterialProperty_mIndex_get(swigCPtr);
  60. return ret;
  61. }
  62. }
  63. public uint mDataLength {
  64. set {
  65. AssimpPINVOKE.aiMaterialProperty_mDataLength_set(swigCPtr, value);
  66. }
  67. get {
  68. uint ret = AssimpPINVOKE.aiMaterialProperty_mDataLength_get(swigCPtr);
  69. return ret;
  70. }
  71. }
  72. public aiPropertyTypeInfo mType {
  73. set {
  74. AssimpPINVOKE.aiMaterialProperty_mType_set(swigCPtr, (int)value);
  75. }
  76. get {
  77. aiPropertyTypeInfo ret = (aiPropertyTypeInfo)AssimpPINVOKE.aiMaterialProperty_mType_get(swigCPtr);
  78. return ret;
  79. }
  80. }
  81. public string mData {
  82. set {
  83. AssimpPINVOKE.aiMaterialProperty_mData_set(swigCPtr, value);
  84. }
  85. get {
  86. string ret = AssimpPINVOKE.aiMaterialProperty_mData_get(swigCPtr);
  87. return ret;
  88. }
  89. }
  90. public aiMaterialProperty() : this(AssimpPINVOKE.new_aiMaterialProperty(), true) {
  91. }
  92. }