[page:BufferAttribute] →

BufferAttribute Types

three.js에서는 아홉 개의 [page:BufferAttribute] 타입을 사용할 수 있습니다. 이 타입들은 JavaScript의 [link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#Syntax Typed Arrays]에 대응됩니다.

THREE.Float64BufferAttribute THREE.Float32BufferAttribute THREE.Float16BufferAttribute THREE.Uint32BufferAttribute THREE.Int32BufferAttribute THREE.Uint16BufferAttribute THREE.Int16BufferAttribute THREE.Uint8ClampedBufferAttribute THREE.Uint8BufferAttribute THREE.Int8BufferAttribute

생성자

위의 타입들은 전부 같은 방법으로 호출됩니다.

TypedBufferAttribute( [param:Array_or_Integer array], [param:Integer itemSize], [param:Boolean normalized] )

array -- typed 혹은 untyped (일반) 배열이나 길이를 나타내는 정수가 올 수 있습니다. 배열의 값은 타입이 특정된 값으로 변환됩니다. 길이를 받으면 새 TypedArray가 생성되고 모든 엘레먼트가 0부터 시작됩니다.

itemSize -- 특정 꼭짓점에 대응되는 배열 값의 수입니다.

normalized -- (생략가능) 버퍼에 있는 기저 데이터가 GLSL 코드에서 값으로 맵핑되는 방식입니다.

프로퍼티

상속 프로퍼티에 관해서는 [page:BufferAttribute] 를 참고하세요.

메서드

상속 메서드에 관해서는 [page:BufferAttribute] 를 참고하세요.

소스코드

[link:https://github.com/mrdoob/three.js/blob/master/src/core/BufferAttribute.js src/core/BufferAttribute.js]