InterleavedBufferAttribute.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. <h1>[name]</h1>
  12. <p class="desc">
  13. </p>
  14. <h2>Constructor</h2>
  15. <h3>[name]( [param:InterleavedBuffer interleavedBuffer], [param:Integer itemSize], [param:Integer offset], [param:Boolean normalized] )</h3>
  16. <p>
  17. </p>
  18. <h2>Properties</h2>
  19. <h3>[property:InterleavedBuffer data]</h3>
  20. <p>
  21. The [page:InterleavedBuffer InterleavedBuffer] instance passed in the constructor.
  22. </p>
  23. <h3>[property:TypedArray array]</h3>
  24. <p>
  25. The value of [page:InterleavedBufferAttribute.data data].array.
  26. </p>
  27. <h3>[property:Integer count]</h3>
  28. <p>
  29. The value of [page:InterleavedBufferAttribute.data data].count.
  30. If the buffer is storing a 3-component item (such as a position, normal, or color),
  31. then this will count the number of such items stored.
  32. </p>
  33. <h3>[property:Integer itemSize]</h3>
  34. <p>
  35. How many values make up each item.
  36. </p>
  37. <h3>[property:Integer offset]</h3>
  38. <p>
  39. The offset in the underlying array buffer where an item starts.
  40. </p>
  41. <h3>[property:Boolean normalized]</h3>
  42. <p>
  43. Default is *true*.
  44. </p>
  45. <h3>[property:Boolean isInterleavedBufferAttribute]</h3>
  46. <p>
  47. Default is *true*.
  48. </p>
  49. <h2>Methods</h2>
  50. <h3>[method:Number getX]( [param:Integer index] ) </h3>
  51. <p>Returns the x component of the item at the given index.</p>
  52. <h3>[method:Number getY]( [param:Integer index] ) </h3>
  53. <p>Returns the y component of the item at the given index.</p>
  54. <h3>[method:Number getZ]( [param:Integer index] ) </h3>
  55. <p>Returns the z component of the item at the given index.</p>
  56. <h3>[method:Number getW]( [param:Integer index] ) </h3>
  57. <p>Returns the w component of the item at the given index.</p>
  58. <h3>[method:null setX]( [param:Integer index], [param:Float x] ) </h3>
  59. <p>Sets the x component of the item at the given index.</p>
  60. <h3>[method:null setY]( [param:Integer index], [param:Float y] ) </h3>
  61. <p>Sets the y component of the item at the given index.</p>
  62. <h3>[method:null setZ]( [param:Integer index], [param:Float z] ) </h3>
  63. <p>Sets the z component of the item at the given index.</p>
  64. <h3>[method:null setW]( [param:Integer index], [param:Float w] ) </h3>
  65. <p>Sets the w component of the item at the given index.</p>
  66. <h3>[method:null setXY]( [param:Integer index], [param:Float x], [param:Float y] ) </h3>
  67. <p>Sets the x and y components of the item at the given index.</p>
  68. <h3>[method:null setXYZ]( [param:Integer index], [param:Float x], [param:Float y], [param:Float z] ) </h3>
  69. <p>Sets the x, y and z components of the item at the given index.</p>
  70. <h3>[method:null setXYZW]( [param:Integer index], [param:Float x], [param:Float y], [param:Float z], [param:Float w] ) </h3>
  71. <p>Sets the x, y, z and w components of the item at the given index.</p>
  72. <h2>Source</h2>
  73. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  74. </body>
  75. </html>