|
@@ -2,7 +2,7 @@
|
|
|
<html lang="en">
|
|
|
<head>
|
|
|
<meta charset="utf-8" />
|
|
|
- <base href="../../" />
|
|
|
+ <base href="../../../" />
|
|
|
<script src="list.js"></script>
|
|
|
<script src="page.js"></script>
|
|
|
<link type="text/css" rel="stylesheet" href="page.css" />
|
|
@@ -35,12 +35,12 @@
|
|
|
attribute is storing a 3-component vector (such as a position, normal, or color), then itemSize should be 3.
|
|
|
<br /><br />
|
|
|
|
|
|
- [page:Boolean normalized] -- (optional) Indicates how the underlying data in the buffer maps
|
|
|
- to the values in the GLSL code. For instance, if [page:TypedArray array] is an instance of
|
|
|
- UInt16Array, and [page:Boolean normalized] is true, the values 0 - +65535 in the array
|
|
|
+ [page:Boolean normalized] -- (optional) Applies to integer data only. Indicates how the underlying data
|
|
|
+ in the buffer maps to the values in the GLSL code. For instance, if [page:TypedArray array] is an instance
|
|
|
+ of UInt16Array, and [page:Boolean normalized] is true, the values 0 - +65535 in the array
|
|
|
data will be mapped to 0.0f - +1.0f in the GLSL attribute. An Int16Array (signed) would map
|
|
|
from -32767 - +32767 to -1.0f - +1.0f. If [page:Boolean normalized] is false, the values
|
|
|
- will be converted to floats which contain the exact value, i.e. 32767 becomes 32767.0f.
|
|
|
+ will be converted to floats unmodified, i.e. 32767 becomes 32767.0f.
|
|
|
</p>
|
|
|
|
|
|
<h2>Properties</h2>
|
|
@@ -99,12 +99,12 @@
|
|
|
|
|
|
<h3>[property:Function onUploadCallback]</h3>
|
|
|
<p>
|
|
|
- A callback function that is executed after the Renderer has transfered the attribute array data to the GPU.
|
|
|
+ A callback function that is executed after the Renderer has transferred the attribute array data to the GPU.
|
|
|
</p>
|
|
|
|
|
|
<h3>[property:Object updateRange]</h3>
|
|
|
<p>Object containing:<br />
|
|
|
- [page:Integer offset]: Default is *0*. Position at whcih to start update.<br />
|
|
|
+ [page:Integer offset]: Default is *0*. Position at which to start update.<br />
|
|
|
[page:Integer count]: Default is *-1*, which means don't use update ranges. <br /><br />
|
|
|
|
|
|
This can be used to only update some components of stored vectors (for example, just the component
|
|
@@ -120,6 +120,9 @@
|
|
|
<h3>[method:BufferAttribute clone]() </h3>
|
|
|
<p>Return a copy of this bufferAttribute.</p>
|
|
|
|
|
|
+ <h3>[method:BufferAttribute copy]( [param:BufferAttribute bufferAttribute] )</h3>
|
|
|
+ <p>Copies another BufferAttribute to this BufferAttribute.</p>
|
|
|
+
|
|
|
<h3>[method:BufferAttribute copyArray]( array ) </h3>
|
|
|
<p>Copy the array given here (which can be a normal array or TypedArray) into
|
|
|
[page:BufferAttribute.array array].<br /><br />
|
|
@@ -131,28 +134,28 @@
|
|
|
<h3>[method:null copyAt] ( [param:Integer index1], [param:BufferAttribute bufferAttribute], [param:Integer index2] ) </h3>
|
|
|
<p>Copy a vector from bufferAttribute[index2] to [page:BufferAttribute.array array][index1].</p>
|
|
|
|
|
|
- <h3>[method:BufferAttribute copyColorsArray]( colors ) </h3>
|
|
|
+ <h3>[method:BufferAttribute copyColorsArray]( [param:Array colors] ) </h3>
|
|
|
<p>Copy an array representing RGB color values into [page:BufferAttribute.array array].</p>
|
|
|
|
|
|
- <h3>[method:BufferAttribute copyVector2sArray]( vectors ) </h3>
|
|
|
+ <h3>[method:BufferAttribute copyVector2sArray]( [param:Array vectors] ) </h3>
|
|
|
<p>Copy an array representing [page:Vector2]s into [page:BufferAttribute.array array].</p>
|
|
|
|
|
|
- <h3>[method:BufferAttribute copyVector3sArray]( vectors ) </h3>
|
|
|
+ <h3>[method:BufferAttribute copyVector3sArray]( [param:Array vectors] ) </h3>
|
|
|
<p>Copy an array representing [page:Vector3]s into [page:BufferAttribute.array array].</p>
|
|
|
|
|
|
- <h3>[method:BufferAttribute copyVector4sArray]( vectors ) </h3>
|
|
|
+ <h3>[method:BufferAttribute copyVector4sArray]( [param:Array vectors] ) </h3>
|
|
|
<p>Copy an array representing [page:Vector4]s into [page:BufferAttribute.array array].</p>
|
|
|
|
|
|
- <h3>[method:Number getX]( index ) </h3>
|
|
|
+ <h3>[method:Number getX]( [param:Integer index] ) </h3>
|
|
|
<p>Returns the x component of the vector at the given index.</p>
|
|
|
|
|
|
- <h3>[method:Number getY]( index ) </h3>
|
|
|
+ <h3>[method:Number getY]( [param:Integer index] ) </h3>
|
|
|
<p>Returns the y component of the vector at the given index.</p>
|
|
|
|
|
|
- <h3>[method:Number getZ]( index ) </h3>
|
|
|
+ <h3>[method:Number getZ]( [param:Integer index] ) </h3>
|
|
|
<p>Returns the z component of the vector at the given index.</p>
|
|
|
|
|
|
- <h3>[method:Number getW]( index ) </h3>
|
|
|
+ <h3>[method:Number getW]( [param:Integer index] ) </h3>
|
|
|
<p>Returns the w component of the vector at the given index.</p>
|
|
|
|
|
|
<h3>[method:null onUpload]( [param:Function callback] ) </h3>
|
|
@@ -160,7 +163,7 @@
|
|
|
Sets the value of the onUploadCallback property.<br /><br />
|
|
|
|
|
|
In the [example:webgl_buffergeometry WebGL / Buffergeometry] this is used to free memory
|
|
|
- after the buffer has been transfered to the GPU.
|
|
|
+ after the buffer has been transferred to the GPU.
|
|
|
</p>
|
|
|
|
|
|
<h3>[method:BufferAttribute set] ( [param:Array value], [param:Integer offset] ) </h3>
|
|
@@ -185,25 +188,25 @@
|
|
|
<h3>[method:BufferAttribute setDynamic] ( [param:Boolean value] ) </h3>
|
|
|
<p>Set [page:BufferAttribute.dynamic dynamic] to value.</p>
|
|
|
|
|
|
- <h3>[method:BufferAttribute setX]( index, x ) </h3>
|
|
|
+ <h3>[method:BufferAttribute setX]( [param:Integer index], [param:Float x] ) </h3>
|
|
|
<p>Sets the x component of the vector at the given index.</p>
|
|
|
|
|
|
- <h3>[method:BufferAttribute setY]( index, y ) </h3>
|
|
|
+ <h3>[method:BufferAttribute setY]( [param:Integer index], [param:Float y] ) </h3>
|
|
|
<p>Sets the y component of the vector at the given index.</p>
|
|
|
|
|
|
- <h3>[method:BufferAttribute setZ]( index, z ) </h3>
|
|
|
+ <h3>[method:BufferAttribute setZ]( [param:Integer index], [param:Float z] ) </h3>
|
|
|
<p>Sets the z component of the vector at the given index.</p>
|
|
|
|
|
|
- <h3>[method:BufferAttribute setW]( index, w ) </h3>
|
|
|
+ <h3>[method:BufferAttribute setW]( [param:Integer index], [param:Float w] ) </h3>
|
|
|
<p>Sets the w component of the vector at the given index.</p>
|
|
|
|
|
|
- <h3>[method:BufferAttribute setXY]( index, x, y ) </h3>
|
|
|
+ <h3>[method:BufferAttribute setXY]( [param:Integer index], [param:Float x], [param:Float y] ) </h3>
|
|
|
<p>Sets the x and y components of the vector at the given index.</p>
|
|
|
|
|
|
- <h3>[method:BufferAttribute setXYZ]( index, x, y, z ) </h3>
|
|
|
+ <h3>[method:BufferAttribute setXYZ]( [param:Integer index], [param:Float x], [param:Float y], [param:Float z] ) </h3>
|
|
|
<p>Sets the x, y and z components of the vector at the given index.</p>
|
|
|
|
|
|
- <h3>[method:BufferAttribute setXYZW]( index, x, y, z, w ) </h3>
|
|
|
+ <h3>[method:BufferAttribute setXYZW]( [param:Integer index], [param:Float x], [param:Float y], [param:Float z], [param:Float w] ) </h3>
|
|
|
<p>Sets the x, y, z and w components of the vector at the given index.</p>
|
|
|
|
|
|
|