Skip to main content

Type Alias: SetupInstanceAttributesCallback

SetupInstanceAttributesCallback = (gl, renderable) => void

Defined in: rendering/renderable.ts:96

Callback function type for setting up instance attributes in WebGL. This function configures the vertex attribute pointers for instanced rendering.

Parameters​

gl​

WebGL2RenderingContext

The WebGL2 rendering context

renderable​

Renderable

The renderable object being configured

Returns​

void