25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

173 lines
4.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 aiLight : IDisposable {
  11. private HandleRef swigCPtr;
  12. protected bool swigCMemOwn;
  13. internal aiLight(IntPtr cPtr, bool cMemoryOwn) {
  14. swigCMemOwn = cMemoryOwn;
  15. swigCPtr = new HandleRef(this, cPtr);
  16. }
  17. internal static HandleRef getCPtr(aiLight obj) {
  18. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  19. }
  20. ~aiLight() {
  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_aiLight(swigCPtr);
  29. }
  30. swigCPtr = new HandleRef(null, IntPtr.Zero);
  31. }
  32. GC.SuppressFinalize(this);
  33. }
  34. }
  35. public aiString mName {
  36. set {
  37. AssimpPINVOKE.aiLight_mName_set(swigCPtr, aiString.getCPtr(value));
  38. }
  39. get {
  40. IntPtr cPtr = AssimpPINVOKE.aiLight_mName_get(swigCPtr);
  41. aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
  42. return ret;
  43. }
  44. }
  45. public aiLightSourceType mType {
  46. set {
  47. AssimpPINVOKE.aiLight_mType_set(swigCPtr, (int)value);
  48. }
  49. get {
  50. aiLightSourceType ret = (aiLightSourceType)AssimpPINVOKE.aiLight_mType_get(swigCPtr);
  51. return ret;
  52. }
  53. }
  54. public aiVector3D mPosition {
  55. set {
  56. AssimpPINVOKE.aiLight_mPosition_set(swigCPtr, aiVector3D.getCPtr(value));
  57. }
  58. get {
  59. IntPtr cPtr = AssimpPINVOKE.aiLight_mPosition_get(swigCPtr);
  60. aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
  61. return ret;
  62. }
  63. }
  64. public aiVector3D mDirection {
  65. set {
  66. AssimpPINVOKE.aiLight_mDirection_set(swigCPtr, aiVector3D.getCPtr(value));
  67. }
  68. get {
  69. IntPtr cPtr = AssimpPINVOKE.aiLight_mDirection_get(swigCPtr);
  70. aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
  71. return ret;
  72. }
  73. }
  74. public float mAttenuationConstant {
  75. set {
  76. AssimpPINVOKE.aiLight_mAttenuationConstant_set(swigCPtr, value);
  77. }
  78. get {
  79. float ret = AssimpPINVOKE.aiLight_mAttenuationConstant_get(swigCPtr);
  80. return ret;
  81. }
  82. }
  83. public float mAttenuationLinear {
  84. set {
  85. AssimpPINVOKE.aiLight_mAttenuationLinear_set(swigCPtr, value);
  86. }
  87. get {
  88. float ret = AssimpPINVOKE.aiLight_mAttenuationLinear_get(swigCPtr);
  89. return ret;
  90. }
  91. }
  92. public float mAttenuationQuadratic {
  93. set {
  94. AssimpPINVOKE.aiLight_mAttenuationQuadratic_set(swigCPtr, value);
  95. }
  96. get {
  97. float ret = AssimpPINVOKE.aiLight_mAttenuationQuadratic_get(swigCPtr);
  98. return ret;
  99. }
  100. }
  101. public aiColor3D mColorDiffuse {
  102. set {
  103. AssimpPINVOKE.aiLight_mColorDiffuse_set(swigCPtr, aiColor3D.getCPtr(value));
  104. }
  105. get {
  106. IntPtr cPtr = AssimpPINVOKE.aiLight_mColorDiffuse_get(swigCPtr);
  107. aiColor3D ret = (cPtr == IntPtr.Zero) ? null : new aiColor3D(cPtr, false);
  108. return ret;
  109. }
  110. }
  111. public aiColor3D mColorSpecular {
  112. set {
  113. AssimpPINVOKE.aiLight_mColorSpecular_set(swigCPtr, aiColor3D.getCPtr(value));
  114. }
  115. get {
  116. IntPtr cPtr = AssimpPINVOKE.aiLight_mColorSpecular_get(swigCPtr);
  117. aiColor3D ret = (cPtr == IntPtr.Zero) ? null : new aiColor3D(cPtr, false);
  118. return ret;
  119. }
  120. }
  121. public aiColor3D mColorAmbient {
  122. set {
  123. AssimpPINVOKE.aiLight_mColorAmbient_set(swigCPtr, aiColor3D.getCPtr(value));
  124. }
  125. get {
  126. IntPtr cPtr = AssimpPINVOKE.aiLight_mColorAmbient_get(swigCPtr);
  127. aiColor3D ret = (cPtr == IntPtr.Zero) ? null : new aiColor3D(cPtr, false);
  128. return ret;
  129. }
  130. }
  131. public float mAngleInnerCone {
  132. set {
  133. AssimpPINVOKE.aiLight_mAngleInnerCone_set(swigCPtr, value);
  134. }
  135. get {
  136. float ret = AssimpPINVOKE.aiLight_mAngleInnerCone_get(swigCPtr);
  137. return ret;
  138. }
  139. }
  140. public float mAngleOuterCone {
  141. set {
  142. AssimpPINVOKE.aiLight_mAngleOuterCone_set(swigCPtr, value);
  143. }
  144. get {
  145. float ret = AssimpPINVOKE.aiLight_mAngleOuterCone_get(swigCPtr);
  146. return ret;
  147. }
  148. }
  149. public aiLight() : this(AssimpPINVOKE.new_aiLight(), true) {
  150. }
  151. }