InterleavedBufferAttribute.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <!DOCTYPE html>
  2. <html lang="it">
  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>Costruttore</h2>
  14. <h3>[name]( [param:InterleavedBuffer interleavedBuffer], [param:Integer itemSize], [param:Integer offset], [param:Boolean normalized] )</h3>
  15. <p>
  16. </p>
  17. <h2>Proprietà</h2>
  18. <h3>[property:InterleavedBuffer data]</h3>
  19. <p>
  20. L'istanza [page:InterleavedBuffer InterleavedBuffer] passata nel costruttore.
  21. </p>
  22. <h3>[property:TypedArray array]</h3>
  23. <p>
  24. Il valore di [page:InterleavedBufferAttribute.data data].array.
  25. </p>
  26. <h3>[property:Integer count]</h3>
  27. <p>
  28. Il valore di [page:InterleavedBufferAttribute.data data].count.
  29. Se il buffer memorizza un elemento a 3 componenti (come una posizione, una normale, o un colore),
  30. allora questo conterà il numero di ogni elemento memorizzato.
  31. </p>
  32. <h3>[property:Boolean isInterleavedBufferAttribute]</h3>
  33. <p>
  34. Flag di sola lettura per verificare se un dato oggetto è di tipo [name].
  35. </p>
  36. <h3>[property:Integer itemSize]</h3>
  37. <p>
  38. Quanti valori compongono ogni elemento (vertice).
  39. </p>
  40. <h3>[property:String name]</h3>
  41. <p>
  42. Nome opzionale per questa istanza dell'attributo. Il valore di default è una stringa vuota.
  43. </p>
  44. <h3>[property:Boolean needsUpdate]</h3>
  45. <p>
  46. Il valore predefinito è `false`. Impostando questa proprietà a `true` invierà di nuovo l'intero
  47. buffer interleaved (non solo i dati dello specifico attributo) alla GPU.
  48. </p>
  49. <h3>[property:Boolean normalized]</h3>
  50. <p>
  51. Il valore predefinito è `false`.
  52. </p>
  53. <h3>[property:Integer offset]</h3>
  54. <p>
  55. L'offset nel buffer dell'array sottostante in cui inizia un elemento.
  56. </p>
  57. <h2>Metodi</h2>
  58. <h3>[method:this applyMatrix4]( [param:Matrix4 m] )</h3>
  59. <p>Applica la matrice [page:Matrix4 m] ad ogni elemento Vector3 di questo InterleavedBufferAttribute.</p>
  60. <h3>[method:this applyNormalMatrix]( [param:Matrix3 m] )</h3>
  61. <p>Applica la matrice [page:Matrix3 m] ad ogni elemento Vector3 di questo InterleavedBufferAttribute.</p>
  62. <h3>[method:this transformDirection]( [param:Matrix4 m] )</h3>
  63. <p>Applica la matrice [page:Matrix4 m] ad ogni elemento Vector3 di questo InterleavedBufferAttribute, interpretando gli elementi come vettori direzionali.</p>
  64. <h3>[method:Number getX]( [param:Integer index] ) </h3>
  65. <p>Restituisce il componente x dell'elemento in corrispondenza dell'indice specificato.</p>
  66. <h3>[method:Number getY]( [param:Integer index] ) </h3>
  67. <p>Restituisce il componente y dell'elemento in corrispondenza dell'indice specificato.</p>
  68. <h3>[method:Number getZ]( [param:Integer index] ) </h3>
  69. <p>Restituisce il componente z dell'elemento in corrispondenza dell'indice specificato.</p>
  70. <h3>[method:Number getW]( [param:Integer index] ) </h3>
  71. <p>Restituisce il componente w dell'elemento in corrispondenza dell'indice specificato.</p>
  72. <h3>[method:this setX]( [param:Integer index], [param:Float x] ) </h3>
  73. <p>Imposta il componente x dell'elemento in corrispondenza dell'indice specificato.</p>
  74. <h3>[method:this setY]( [param:Integer index], [param:Float y] ) </h3>
  75. <p>Imposta il componente y dell'elemento in corrispondenza dell'indice specificato.</p>
  76. <h3>[method:this setZ]( [param:Integer index], [param:Float z] ) </h3>
  77. <p>Imposta il componente z dell'elemento in corrispondenza dell'indice specificato.</p>
  78. <h3>[method:this setW]( [param:Integer index], [param:Float w] ) </h3>
  79. <p>Imposta il componente w dell'elemento in corrispondenza dell'indice specificato.</p>
  80. <h3>[method:this setXY]( [param:Integer index], [param:Float x], [param:Float y] ) </h3>
  81. <p>Imposta i componenti x e y dell'elemento in corrispondenza dell'indice specificato.</p>
  82. <h3>[method:this setXYZ]( [param:Integer index], [param:Float x], [param:Float y], [param:Float z] ) </h3>
  83. <p>Imposta i componenti x, y e z dell'elemento in corrispondenza dell'indice specificato.</p>
  84. <h3>[method:this setXYZW]( [param:Integer index], [param:Float x], [param:Float y], [param:Float z], [param:Float w] ) </h3>
  85. <p>Imposta i componenti x, y, z e w dell'elemento in corrispondenza dell'indice specificato.</p>
  86. <h2>Source</h2>
  87. <p>
  88. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  89. </p>
  90. </body>
  91. </html>