未验证 提交 c8457c4f 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #17980 from FMS-Cat/typedef-webglgeometries

Update typedef for WebGLGeometries and others
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;
}
import { WebGLAttributes } from './WebGLAttributes';
import { WebGLInfo } from './WebGLInfo';
import { BufferAttribute } from '../../core/BufferAttribute';
import { BufferGeometry } from '../../core/BufferGeometry';
import { Geometry } from '../../core/Geometry';
import { Object3D } from '../../core/Object3D';
export class WebGLGeometries {
constructor( gl: WebGLRenderingContext, attributes: any, info: any );
constructor( gl: WebGLRenderingContext, attributes: WebGLAttributes, info: WebGLInfo );
get( object: any, geometry: any ): any;
update( geometry: any ): any;
getWireframeAttribute( geometry: any ): any;
get( object: Object3D, geometry: Geometry | BufferGeometry ): BufferGeometry;
update( geometry: Geometry | BufferGeometry ): void;
getWireframeAttribute( geometry: Geometry | BufferGeometry ): BufferAttribute;
}
......@@ -20,7 +20,7 @@ export class WebGLInfo {
points: number;
triangles: number;
};
update( count: any, mode: any, instanceCount: any ): void;
update( count: number, mode: GLenum, instanceCount: number ): void;
reset(): void;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册