[page:BufferAttribute] →

Tipi di BufferAttribute

Ci sono nove tipi di [page:BufferAttribute] disponibili in three.js. Questi corrispondono ai [link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#Syntax Typed Array] JavaScript.

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

Costruttore

Tutti i precedenti sono chiamati allo stesso modo.

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

array -- può essere un array tipizzato o non tipizzato (normale) o una lunghezza intera. Un valore dell'array sarà convertito nel Tipo specificato. Se viene data una lunghezza sarà creato un nuovo TypedArray, inizializzato con tutti gli elementi impostati a zero.

itemSize -- il numero di valori dell'array che dovrebbe essere associato ad un particolare vertice.

normalized -- (opzionale) indica come i dati sottostanti nel buffer vengono mappati ai valori nel codice GLSL.

Proprietà

Vedi [page:BufferAttribute] per le prorietà ereditate.

Metodi

Vedi [page:BufferAttribute] per i metodi ereditati.

Source

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