Re-added BufferGeometry.addAttribute and .addDrawCall and marked as deprecated.

This commit is contained in:
spacejack
2015-10-25 15:08:49 -04:00
parent 1163b3e5ff
commit 180b109a32
+4 -1
View File
@@ -539,7 +539,8 @@ declare module THREE {
groups: {start: number, count: number, materialIndex?: number}[]
boundingBox: Box3;
boundingSphere: BoundingSphere;
/** Deprecated. This overloaded method is deprecated. */
addAttribute(name: string, array: any, itemSize: number): any;
addAttribute(name: string, attribute: BufferAttribute|InterleavedBufferAttribute): void;
getAttribute(name: string): BufferAttribute|InterleavedBufferAttribute;
removeAttribute(name: string): void;
@@ -547,6 +548,8 @@ declare module THREE {
setIndex(index: BufferAttribute): void;
getIndex(): BufferAttribute;
/** Deprecated. Use addGroup */
addDrawCall(start: number, count: number, index: number): void;
addGroup(start: number, count: number, materialIndex?: number): void;
clearGroups(): void;