The renderer this System works for.
Protected
_Protected
_Protected
_Readonly
cantrue
if support gl.UNSIGNED_INT
in gl.drawElements
or gl.drawElementsInstanced
.
Protected
CONTEXT_Protected
glReadonly
hastrue
if has ANGLE_instanced_arrays
extension.
Readonly
hastrue
if we has *_vertex_array_object
extension.
Readonly
managedCache for all geometries by id, used in case renderer gets destroyed or for profiling.
Protected
activateProtected
checkProtected
contextSets up the renderer context and necessary buffers.
Generic destroy methods to be overridden by the subclass
Dispose all WebGL resources of all managed geometries.
Optional
contextLost: booleanIf context was lost, we suppress gl.delete
calls
Disposes geometry.
Geometry with buffers. Only VAO will be disposed
Optional
contextLost: booleanIf context was lost, we suppress deleteVertexArray
Draws the currently bound geometry.
The type primitive to render.
Optional
size: numberThe number of elements to be rendered. If not specified, all vertices after the starting vertex will be drawn.
Optional
start: numberThe starting vertex in the geometry to start drawing from. If not specified, drawing will start from the first vertex.
Optional
instanceCount: numberThe number of instances of the set of elements to execute. If not specified, all instances will be drawn.
Protected
getProtected
initCreates or gets Vao with the same structure as the geometry and stores it on the geometry. If vao is created, it is bound automatically. We use a shader to infer what and how to set up the attribute locations.
Reset and unbind any active VAO and geometry.
Protected
unbindUnbind/reset everything.
Update buffers of the currently bound geometry.
System plugin to the renderer to manage geometry.
Memberof
PIXI