PrimitiveCompositor

class PrimitiveCompositor extends Compositor

A WebGL Compositor object. This class handles all of the WebGL state
Pushes texture regions or shape geometry into WebGL buffers, automatically flushes to GPU

Constructor


new PrimitiveCompositor() → {}

Summary


Methods from PrimitiveCompositor

Properties inherited from Compositor

Public Methods


drawVertices primitive_compositor.js:29
drawVertices(mode: GLenum, verts: Array<Point>, vertexCount: number) → {}

Draw an array of vertices

Parameters:
Name Type Attributes Default Description
mode GLenum

primitive type to render (gl.POINTS, gl.LINE_STRIP, gl.LINE_LOOP, gl.LINES, gl.TRIANGLE_STRIP, gl.TRIANGLE_FAN, gl.TRIANGLES)

verts Array<Point>

an array of vertices

vertexCount number

<optional>

verts.length

amount of points defined in the points array


Powered by webdoc!