提交 d6f8bb5e 编写于 作者: Y Yutaka Obuchi

Make WebGLAttributes.d.ts strict

上级 cf2dfa82
import { BufferAttribute } from "../../core/BufferAttribute";
import { InterleavedBufferAttribute } from "../../core/InterleavedBufferAttribute";
export class WebGLAttributes {
constructor( gl: WebGLRenderingContext | WebGL2RenderingContext );
get( attribute: any ): any;
get( attribute: BufferAttribute | InterleavedBufferAttribute ): {
buffer: WebGLBuffer,
type: GLenum,
bytesPerElement: number,
version: number
};
remove( attribute: any ): void;
remove( attribute: BufferAttribute | InterleavedBufferAttribute ): void;
update( attribute: any, bufferType: Array<any> ): void;
update( attribute: BufferAttribute | InterleavedBufferAttribute, bufferType: GLenum ): void;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册