molstar
Version:
A comprehensive macromolecular library.
17 lines (16 loc) • 651 B
TypeScript
/**
* Copyright (c) 2018-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import { Program } from './program';
import { ElementsBuffer, AttributeBuffers } from './buffer';
import { WebGLExtensions } from './extensions';
export interface VertexArray {
readonly id: number;
bind: () => void;
update: () => void;
reset: () => void;
destroy: () => void;
}
export declare function createVertexArray(extensions: WebGLExtensions, program: Program, attributeBuffers: AttributeBuffers, elementsBuffer?: ElementsBuffer): VertexArray;