InterleavedBufferAttribute.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <!DOCTYPE html>
  2. <html lang="en">
  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"></p>
  12. <h2>Constructor</h2>
  13. <h3>[name]( [param:InterleavedBuffer interleavedBuffer], [param:Integer itemSize], [param:Integer offset], [param:Boolean normalized] )</h3>
  14. <h2>Properties</h2>
  15. <h3>[property:InterleavedBuffer data]</h3>
  16. <p>
  17. The [page:InterleavedBuffer InterleavedBuffer] instance passed in the
  18. constructor.
  19. </p>
  20. <h3>[property:TypedArray array]</h3>
  21. <p>The value of [page:InterleavedBufferAttribute.data data].array.</p>
  22. <h3>[property:Integer count]</h3>
  23. <p>
  24. The value of [page:InterleavedBufferAttribute.data data].count. If the
  25. buffer is storing a 3-component item (such as a position, normal, or
  26. color), then this will count the number of such items stored.
  27. </p>
  28. <h3>[property:Boolean isInterleavedBufferAttribute]</h3>
  29. <p>Read-only flag to check if a given object is of type [name].</p>
  30. <h3>[property:Integer itemSize]</h3>
  31. <p>How many values make up each item.</p>
  32. <h3>[property:String name]</h3>
  33. <p>
  34. Optional name for this attribute instance. Default is an empty string.
  35. </p>
  36. <h3>[property:Boolean needsUpdate]</h3>
  37. <p>
  38. Default is `false`. Setting this to `true` will send the entire
  39. interleaved buffer (not just the specific attribute data) to the GPU
  40. again.
  41. </p>
  42. <h3>[property:Boolean normalized]</h3>
  43. <p>Default is `false`.</p>
  44. <h3>[property:Integer offset]</h3>
  45. <p>The offset in the underlying array buffer where an item starts.</p>
  46. <h2>Methods</h2>
  47. <h3>[method:this applyMatrix4]( [param:Matrix4 m] )</h3>
  48. <p>
  49. Applies matrix [page:Matrix4 m] to every Vector3 element of this
  50. InterleavedBufferAttribute.
  51. </p>
  52. <h3>[method:this applyNormalMatrix]( [param:Matrix3 m] )</h3>
  53. <p>
  54. Applies normal matrix [page:Matrix3 m] to every Vector3 element of this
  55. InterleavedBufferAttribute.
  56. </p>
  57. <h3>[method:this transformDirection]( [param:Matrix4 m] )</h3>
  58. <p>
  59. Applies matrix [page:Matrix4 m] to every Vector3 element of this
  60. InterleavedBufferAttribute, interpreting the elements as a direction
  61. vectors.
  62. </p>
  63. <h3>[method:Number getComponent]( [param:Integer index], [param:Integer component] ) </h3>
  64. <p>Returns the given component of the vector at the given index.</p>
  65. <h3>[method:Number getX]( [param:Integer index] )</h3>
  66. <p>Returns the x component of the item at the given index.</p>
  67. <h3>[method:Number getY]( [param:Integer index] )</h3>
  68. <p>Returns the y component of the item at the given index.</p>
  69. <h3>[method:Number getZ]( [param:Integer index] )</h3>
  70. <p>Returns the z component of the item at the given index.</p>
  71. <h3>[method:Number getW]( [param:Integer index] )</h3>
  72. <p>Returns the w component of the item at the given index.</p>
  73. <h3>[method:Number setComponent]( [param:Integer index], [param:Integer component], [param:Float value] ) </h3>
  74. <p>Sets the given component of the vector at the given index.</p>
  75. <h3>[method:this setX]( [param:Integer index], [param:Float x] )</h3>
  76. <p>Sets the x component of the item at the given index.</p>
  77. <h3>[method:this setY]( [param:Integer index], [param:Float y] )</h3>
  78. <p>Sets the y component of the item at the given index.</p>
  79. <h3>[method:this setZ]( [param:Integer index], [param:Float z] )</h3>
  80. <p>Sets the z component of the item at the given index.</p>
  81. <h3>[method:this setW]( [param:Integer index], [param:Float w] )</h3>
  82. <p>Sets the w component of the item at the given index.</p>
  83. <h3>[method:this setXY]( [param:Integer index], [param:Float x], [param:Float y] )</h3>
  84. <p>Sets the x and y components of the item at the given index.</p>
  85. <h3>[method:this setXYZ]( [param:Integer index], [param:Float x], [param:Float y], [param:Float z] )</h3>
  86. <p>Sets the x, y and z components of the item at the given index.</p>
  87. <h3>[method:this setXYZW]( [param:Integer index], [param:Float x], [param:Float y], [param:Float z], [param:Float w] )</h3>
  88. <p>Sets the x, y, z and w components of the item at the given index.</p>
  89. <h2>Source</h2>
  90. <p>
  91. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  92. </p>
  93. </body>
  94. </html>