import { AttributeBinding, TypedArray } from '@luma.gl/api'; import { ClassicBuffer, AccessorObject } from '@luma.gl/webgl'; import Accessor from './accessor'; import Program from './program'; import ProgramConfiguration from './program-configuration'; import VertexArrayObject from './vertex-array-object'; export declare type VertexArrayProps = { id?: string; program?: Program; configuration?: ProgramConfiguration; attributes?: Record; elements?: any; bindOnUse?: boolean; }; export declare type DrawParams = { elementCount: number; indexType: Uint16ArrayConstructor | Uint32ArrayConstructor; indexOffset: number; isIndexed: boolean; isInstanced: boolean; indexCount: number; vertexCount: number; instanceCount: number; }; /** @deprecated Use RenderPipeline (public) and WEBGLVertexArrayObject (internal) */ export default class VertexArray { id: string; gl: WebGLRenderingContext; handle: WebGLVertexArrayObject; readonly attributes: object; vertexArrayObject: VertexArrayObject; accessors: Accessor[]; configuration: ProgramConfiguration | null; elements: ClassicBuffer | null; elementsAccessor: Accessor | null; values: (ClassicBuffer | TypedArray | null)[]; unused: Record; drawParams: DrawParams | null; buffer: ClassicBuffer | null; bindOnUse: boolean; constructor(gl: WebGLRenderingContext, props?: VertexArrayProps); delete(): void; initialize(props?: VertexArrayProps): this; reset(): this; setProps(props: VertexArrayProps): this; clearDrawParams(): void; getDrawParams(): DrawParams; setAttributes(attributes: any): this; setElementBuffer(elementBuffer?: ClassicBuffer | null, accessor?: AccessorObject): this; setBuffer(locationOrName: number | string, buffer: ClassicBuffer, appAccessor?: {}): this; setConstant(locationOrName: string | number, arrayValue: TypedArray, appAccessor?: AccessorObject): this; unbindBuffers(): this; bindBuffers(): this; bindForDraw(vertexCount: number, instanceCount: number, func: Function): any; _resolveLocationAndAccessor(locationOrName: string | number, value: any, valueAccessor: any, appAccessor: AccessorObject): { location: number; accessor: Accessor; }; _getAttributeInfo(attributeName: string | number): AttributeBinding; _getAttributeIndex(locationOrName: number | string): { location: number; name?: string; }; _setAttribute(locationOrName: number | string, value: ClassicBuffer | [ClassicBuffer, any] | number[] | { buffer: ClassicBuffer; }): void; _setConstantAttributes(vertexCount: number, instanceCount: number): void; _setConstantAttributeZero(constant: TypedArray, elementCount: number): void; _setConstantAttribute(location: number | string, constant: TypedArray): void; _updateDrawParams(): DrawParams; _updateDrawParamsForLocation(drawParams: DrawParams, location: number): void; setElements(elementBuffer?: ClassicBuffer, accessor?: {}): this; } //# sourceMappingURL=vertex-array.d.ts.map