選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

93 行
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 aiAnimMesh : IDisposable {
  11. private HandleRef swigCPtr;
  12. protected bool swigCMemOwn;
  13. internal aiAnimMesh(IntPtr cPtr, bool cMemoryOwn) {
  14. swigCMemOwn = cMemoryOwn;
  15. swigCPtr = new HandleRef(this, cPtr);
  16. }
  17. internal static HandleRef getCPtr(aiAnimMesh obj) {
  18. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  19. }
  20. ~aiAnimMesh() {
  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_aiAnimMesh(swigCPtr);
  29. }
  30. swigCPtr = new HandleRef(null, IntPtr.Zero);
  31. }
  32. GC.SuppressFinalize(this);
  33. }
  34. }
  35. public aiVector3D mBitangents {
  36. set {
  37. AssimpPINVOKE.aiAnimMesh_mBitangents_set(swigCPtr, aiVector3D.getCPtr(value));
  38. }
  39. get {
  40. IntPtr cPtr = AssimpPINVOKE.aiAnimMesh_mBitangents_get(swigCPtr);
  41. aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
  42. return ret;
  43. }
  44. }
  45. public uint mNumVertices {
  46. set {
  47. AssimpPINVOKE.aiAnimMesh_mNumVertices_set(swigCPtr, value);
  48. }
  49. get {
  50. uint ret = AssimpPINVOKE.aiAnimMesh_mNumVertices_get(swigCPtr);
  51. return ret;
  52. }
  53. }
  54. public aiAnimMesh() : this(AssimpPINVOKE.new_aiAnimMesh(), true) {
  55. }
  56. public bool HasPositions() {
  57. bool ret = AssimpPINVOKE.aiAnimMesh_HasPositions(swigCPtr);
  58. return ret;
  59. }
  60. public bool HasNormals() {
  61. bool ret = AssimpPINVOKE.aiAnimMesh_HasNormals(swigCPtr);
  62. return ret;
  63. }
  64. public bool HasTangentsAndBitangents() {
  65. bool ret = AssimpPINVOKE.aiAnimMesh_HasTangentsAndBitangents(swigCPtr);
  66. return ret;
  67. }
  68. public bool HasVertexColors(uint pIndex) {
  69. bool ret = AssimpPINVOKE.aiAnimMesh_HasVertexColors(swigCPtr, pIndex);
  70. return ret;
  71. }
  72. public bool HasTextureCoords(uint pIndex) {
  73. bool ret = AssimpPINVOKE.aiAnimMesh_HasTextureCoords(swigCPtr, pIndex);
  74. return ret;
  75. }
  76. }