an array of vertex attribute properties
the shader currently used by this batcher
the default shader created by this batcher
primitive type to render (gl.POINTS, gl.LINE_STRIP, gl.LINE_LOOP, gl.LINES, gl.TRIANGLE_STRIP, gl.TRIANGLE_FAN, gl.TRIANGLES)
the stride of a single vertex in bytes (will automatically be calculated as attributes definitions are added)
the vertex data buffer used by this batcher
the size of a single vertex in floats (will automatically be calculated as attributes definitions are added)
add vertex attribute property definition to the batcher
name of the attribute in the vertex shader
number of components per vertex attribute. Must be 1, 2, 3, or 4.
data type of each component in the array
whether integer data values should be normalized into a certain range when being cast to a float
offset in bytes of the first component in the vertex attribute array
called by the WebGL renderer when a compositor become the current one
Draw an array of vertices
primitive type to render (gl.POINTS, gl.LINE_STRIP, gl.LINE_LOOP, gl.LINES, gl.TRIANGLE_STRIP, gl.TRIANGLE_FAN, gl.TRIANGLES)
an array of vertices
OptionalvertexCount: number = verts.lengthamount of points defined in the points array
Flush batched vertex data to the GPU
Optionalmode: number = ...the GL drawing mode
set/change the current projection matrix
the new projection matrix
Select the shader to use for compositing
a reference to a GLShader instance
Deprecated
since 18.1.0
See
PrimitiveBatcher