浏览代码

correct documentation again with link to usage example (#10065)

aardgoose 8 年之前
父节点
当前提交
ffa86e4d4c
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      docs/api/core/BufferAttribute.html

+ 7 - 1
docs/api/core/BufferAttribute.html

@@ -54,7 +54,7 @@
 		A version number, incremented every time the needsUpdate property is set to true.
 		</div>
 
-		<h3>[property:Function onUpload]</h3>
+		<h3>[property:Function onUploadCallback]</h3>
 		<div>
 		A callback function that is executed after the Renderer has transfered the attribute array data to the GPU.
 		</div>
@@ -107,6 +107,12 @@
 		the value of the array at <code>index * itemSize + 3</code> to w.
 		</div>
 
+		<h3>[method:null onUpload]( [page:Function callback] ) </h3>
+		<div>
+		Sets the value of the onUploadCallback property.
+		</div>
+		<div>Example: [example:webgl_buffergeometry used to free memory after the buffer has been transfered to GPU].</div>
+
 		<h3>[method:BufferAttribute clone]() </h3>
 		<div>
 		Copies this attribute.