InterleavedBufferAttribute.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <!DOCTYPE html>
  2. <html lang="ko">
  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. 버퍼가 3-컴포넌트 항목(위치, 법선, 색상 등의)을 저장하고 있을 때,
  30. 저장된 항목들의 수를 카운팅합니다.
  31. </p>
  32. <h3>[property:Boolean isInterleavedBufferAttribute]</h3>
  33. <p>
  34. Read-only flag to check if a given object is of type [name].
  35. </p>
  36. <h3>[property:Integer itemSize]</h3>
  37. <p>
  38. 각 항목을 구성하는 값의 수입니다.
  39. </p>
  40. <h3>[property:String name]</h3>
  41. <p>
  42. 이 속성 인스턴스의 임시 이름입니다. 기본값은 빈 문자열입니다.
  43. </p>
  44. <h3>[property:Boolean needsUpdate]</h3>
  45. <p>
  46. 기본값은 *false*입니다. *true*로 설정하면 모든 인터리브 버퍼(특정 속성 데이터만이 아닌)를 GPU에 다시 전송합니다.
  47. </p>
  48. <h3>[property:Boolean normalized]</h3>
  49. <p>
  50. 기본값은 *false*입니다.
  51. </p>
  52. <h3>[property:Integer offset]</h3>
  53. <p>
  54. 항목이 시작하는 기저 배열 버퍼의 오프셋입니다.
  55. </p>
  56. <h2>메서드</h2>
  57. <h3>[method:this applyMatrix4]( [param:Matrix4 m] )</h3>
  58. <p>[page:Matrix4 m] 매트릭스를 이 InterleavedBufferAttribute의 모든 Vector3 엘레먼트에 적용합니다.</p>
  59. <h3>[method:this applyNormalMatrix]( [param:Matrix3 m] )</h3>
  60. <p>[page:Matrix3 m] 노멀 매트릭스를 이 InterleavedBufferAttribute의 모든 Vector3 엘레먼트에 적용합니다.</p>
  61. <h3>[method:this transformDirection]( [param:Matrix4 m] )</h3>
  62. <p>[page:Matrix4 m] 매트릭스를 이 InterleavedBufferAttribute의 모든 Vector3 엘레먼트에 적용하고, 엘레먼트를 방향 벡터로 이동합니다.</p>
  63. <h3>[method:Number getX]( [param:Integer index] ) </h3>
  64. <p>해당 index의 항목의 x 컴포넌트를 리턴합니다.</p>
  65. <h3>[method:Number getY]( [param:Integer index] ) </h3>
  66. <p>해당 index의 항목의 y 컴포넌트를 리턴합니다.</p>
  67. <h3>[method:Number getZ]( [param:Integer index] ) </h3>
  68. <p>해당 index의 항목의 z 컴포넌트를 리턴합니다.</p>
  69. <h3>[method:Number getW]( [param:Integer index] ) </h3>
  70. <p>해당 index의 항목의 w 컴포넌트를 리턴합니다.</p>
  71. <h3>[method:this setX]( [param:Integer index], [param:Float x] ) </h3>
  72. <p>해당 index의 항목의 x 컴포넌트를 설정합니다.</p>
  73. <h3>[method:this setY]( [param:Integer index], [param:Float y] ) </h3>
  74. <p>해당 index의 항목의 y 컴포넌트를 설정합니다.</p>
  75. <h3>[method:this setZ]( [param:Integer index], [param:Float z] ) </h3>
  76. <p>해당 index의 항목의 z 컴포넌트를 설정합니다.</p>
  77. <h3>[method:this setW]( [param:Integer index], [param:Float w] ) </h3>
  78. <p>해당 index의 항목의 w 컴포넌트를 설정합니다.</p>
  79. <h3>[method:this setXY]( [param:Integer index], [param:Float x], [param:Float y] ) </h3>
  80. <p>해당 index의 항목의 x, y 컴포넌트를 설정합니다.</p>
  81. <h3>[method:this setXYZ]( [param:Integer index], [param:Float x], [param:Float y], [param:Float z] ) </h3>
  82. <p>해당 index의 항목의 x, y, z 컴포넌트를 설정합니다.</p>
  83. <h3>[method:this setXYZW]( [param:Integer index], [param:Float x], [param:Float y], [param:Float z], [param:Float w] ) </h3>
  84. <p>해당 index의 항목의 x, y, z, w 컴포넌트를 설정합니다.</p>
  85. <h2>소스코드</h2>
  86. <p>
  87. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  88. </p>
  89. </body>
  90. </html>