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

93 lines
2.2 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 aiTexture : IDisposable {
  11. private HandleRef swigCPtr;
  12. protected bool swigCMemOwn;
  13. internal aiTexture(IntPtr cPtr, bool cMemoryOwn) {
  14. swigCMemOwn = cMemoryOwn;
  15. swigCPtr = new HandleRef(this, cPtr);
  16. }
  17. internal static HandleRef getCPtr(aiTexture obj) {
  18. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  19. }
  20. ~aiTexture() {
  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_aiTexture(swigCPtr);
  29. }
  30. swigCPtr = new HandleRef(null, IntPtr.Zero);
  31. }
  32. GC.SuppressFinalize(this);
  33. }
  34. }
  35. public uint mWidth {
  36. set {
  37. AssimpPINVOKE.aiTexture_mWidth_set(swigCPtr, value);
  38. }
  39. get {
  40. uint ret = AssimpPINVOKE.aiTexture_mWidth_get(swigCPtr);
  41. return ret;
  42. }
  43. }
  44. public uint mHeight {
  45. set {
  46. AssimpPINVOKE.aiTexture_mHeight_set(swigCPtr, value);
  47. }
  48. get {
  49. uint ret = AssimpPINVOKE.aiTexture_mHeight_get(swigCPtr);
  50. return ret;
  51. }
  52. }
  53. public string achFormatHint {
  54. set {
  55. AssimpPINVOKE.aiTexture_achFormatHint_set(swigCPtr, value);
  56. }
  57. get {
  58. string ret = AssimpPINVOKE.aiTexture_achFormatHint_get(swigCPtr);
  59. return ret;
  60. }
  61. }
  62. public aiTexel pcData {
  63. set {
  64. AssimpPINVOKE.aiTexture_pcData_set(swigCPtr, aiTexel.getCPtr(value));
  65. }
  66. get {
  67. IntPtr cPtr = AssimpPINVOKE.aiTexture_pcData_get(swigCPtr);
  68. aiTexel ret = (cPtr == IntPtr.Zero) ? null : new aiTexel(cPtr, false);
  69. return ret;
  70. }
  71. }
  72. public bool CheckFormat(string s) {
  73. bool ret = AssimpPINVOKE.aiTexture_CheckFormat(swigCPtr, s);
  74. return ret;
  75. }
  76. public aiTexture() : this(AssimpPINVOKE.new_aiTexture(), true) {
  77. }
  78. }