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

Merge pull request #19725 from Mugen87/dev43

TS: Add WebGLBindingStates.d.ts.
import { WebGLExtensions } from './WebGLExtensions';
import { WebGLAttributes } from './WebGLAttributes';
import { WebGLProgram } from './WebGLProgram';
import { WebGLCapabilities } from './WebGLCapabilities';
import { Object3D } from './../../core/Object3D';
import { BufferGeometry } from './../../core/BufferGeometry';
import { BufferAttribute } from './../../core/BufferAttribute';
import { Material } from './../../materials/Material';
export class WebGLBindingStates {
constructor( gl: WebGLRenderingContext, extensions: WebGLExtensions, attributes: WebGLAttributes, capabilities: WebGLCapabilities );
setup( object: Object3D, material: Material, program: WebGLProgram, geometry: BufferGeometry, index: BufferAttribute ): void;
reset(): void;
resetDefaultState(): void;
dispose(): void;
releaseStatesOfGeometry(): void;
releaseStatesOfProgram(): void;
initAttributes(): void;
enableAttribute( attribute: number ): void;
disableUnusedAttributes(): void;
}
......@@ -168,9 +168,6 @@ function WebGLBindingStates( gl, extensions, attributes, capabilities ) {
}
// If we sacrifice some BufferGeometry/Attribute API flexibility
// needsUpdate() and saveCache() can be much simpler. See #16287
function needsUpdate( geometry ) {
const cachedAttributes = currentState.attributes;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册