InterleavedBufferAttribute.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="page.css" />
  8. </head>
  9. <body>
  10. <h1>[name]</h1>
  11. <p class="desc">
  12. </p>
  13. <h2>构造函数</h2>
  14. <h3>[name]( [param:InterleavedBuffer interleavedBuffer], [param:Integer itemSize], [param:Integer offset], [param:Boolean normalized] )</h3>
  15. <p>
  16. </p>
  17. <h2>属性</h2>
  18. <h3>[property:InterleavedBuffer data]</h3>
  19. <p>
  20. 传入构造函数的 [page:InterleavedBuffer InterleavedBuffer] 实例。
  21. </p>
  22. <h3>[property:TypedArray array]</h3>
  23. <p>
  24. [page:InterleavedBufferAttribute.data data].array 的值。
  25. </p>
  26. <h3>[property:Integer count]</h3>
  27. <p>
  28. [page:InterleavedBufferAttribute.data data].count 的值。
  29. 所缓存的矢量的个数。如果缓存的矢量是一个三元组(例如,位置、法向量或颜色),则该值计算上述三元组的个数。
  30. </p>
  31. <h3>[property:Boolean isInterleavedBufferAttribute]</h3>
  32. <p>
  33. Read-only flag to check if a given object is of type [name].
  34. </p>
  35. <h3>[property:Integer itemSize]</h3>
  36. <p>
  37. 队列中每个矢量有多少个元素构成。
  38. </p>
  39. <h3>[property:String name]</h3>
  40. <p>
  41. Optional name for this attribute instance. Default is an empty string.
  42. </p>
  43. <h3>[property:Boolean needsUpdate]</h3>
  44. <p>
  45. Default is *false*. Setting this to *true* will send the entire interleaved buffer (not just the specific attribute data) to the GPU again.
  46. </p>
  47. <h3>[property:Boolean normalized]</h3>
  48. <p>
  49. 默认值为 *false*。
  50. </p>
  51. <h3>[property:Integer offset]</h3>
  52. <p>
  53. 缓存队列中每个元素的起始位置的偏移量。
  54. </p>
  55. <h2>方法</h2>
  56. <h3>[method:this applyMatrix4]( [param:Matrix4 m] )</h3>
  57. <p>Applies matrix [page:Matrix4 m] to every Vector3 element of this InterleavedBufferAttribute.</p>
  58. <h3>[method:this applyNormalMatrix]( [param:Matrix3 m] )</h3>
  59. <p>Applies normal matrix [page:Matrix3 m] to every Vector3 element of this InterleavedBufferAttribute.</p>
  60. <h3>[method:this transformDirection]( [param:Matrix4 m] )</h3>
  61. <p>Applies matrix [page:Matrix4 m] to every Vector3 element of this InterleavedBufferAttribute, interpreting the elements as a direction vectors.</p>
  62. <h3>[method:Number getX]( [param:Integer index] ) </h3>
  63. <p>返回给定索引矢量的第一个元素 (X 值)。</p>
  64. <h3>[method:Number getY]( [param:Integer index] ) </h3>
  65. <p>返回给定索引矢量的第二个元素 (Y 值)。</p>
  66. <h3>[method:Number getZ]( [param:Integer index] ) </h3>
  67. <p>返回给定索引矢量的第三个元素 (Z 值)。</p>
  68. <h3>[method:Number getW]( [param:Integer index] ) </h3>
  69. <p>返回给定索引矢量的第四个元素 (W 值)。</p>
  70. <h3>[method:this setX]( [param:Integer index], [param:Float x] ) </h3>
  71. <p>通过给定参数,设置指定索引矢量的第一个元素 (X 值)。</p>
  72. <h3>[method:this setY]( [param:Integer index], [param:Float y] ) </h3>
  73. <p>通过给定参数,设置指定索引矢量的第二个元素 (Y 值)。</p>
  74. <h3>[method:this setZ]( [param:Integer index], [param:Float z] ) </h3>
  75. <p>通过给定参数,设置指定索引矢量的第三个元素 (Z 值)。</p>
  76. <h3>[method:this setW]( [param:Integer index], [param:Float w] ) </h3>
  77. <p>通过给定参数,设置指定索引矢量的第四个元素 (W 值)。</p>
  78. <h3>[method:this setXY]( [param:Integer index], [param:Float x], [param:Float y] ) </h3>
  79. <p>通过给定参数,设置指定索引矢量的第一、二个元素 (X 和 Y 值)。</p>
  80. <h3>[method:this setXYZ]( [param:Integer index], [param:Float x], [param:Float y], [param:Float z] ) </h3>
  81. <p>通过给定参数,设置指定索引矢量的第一、二、三个元素 (X Y 和 Z 值)。</p>
  82. <h3>[method:this setXYZW]( [param:Integer index], [param:Float x], [param:Float y], [param:Float z], [param:Float w] ) </h3>
  83. <p>通过给定参数,设置指定索引矢量的第一、二、三、四个元素 (X Y Z 和 W 值)。</p>
  84. <h2>源代码</h2>
  85. <p>
  86. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  87. </p>
  88. </body>
  89. </html>