|
@@ -15,6 +15,8 @@ function InterleavedBuffer( array, stride ) {
|
|
|
this.dynamic = false;
|
|
|
this.updateRange = { offset: 0, count: - 1 };
|
|
|
|
|
|
+ this.onUploadCallback = function () {};
|
|
|
+
|
|
|
this.version = 0;
|
|
|
|
|
|
}
|
|
@@ -92,6 +94,14 @@ InterleavedBuffer.prototype = {
|
|
|
|
|
|
return new this.constructor().copy( this );
|
|
|
|
|
|
+ },
|
|
|
+
|
|
|
+ onUpload: function ( callback ) {
|
|
|
+
|
|
|
+ this.onUploadCallback = callback;
|
|
|
+
|
|
|
+ return this;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
};
|