The renderer this System works for.
Protected_Protected_Protected_Readonlycantrue if support gl.UNSIGNED_INT in gl.drawElements or gl.drawElementsInstanced.
ProtectedCONTEXT_ProtectedglReadonlyhastrue if has ANGLE_instanced_arrays extension.
Readonlyhastrue if we has *_vertex_array_object extension.
ReadonlymanagedCache for all geometries by id, used in case renderer gets destroyed or for profiling.
ProtectedactivateProtectedcheckProtectedcontextSets up the renderer context and necessary buffers.
Generic destroy methods to be overridden by the subclass
Dispose all WebGL resources of all managed geometries.
OptionalcontextLost: booleanIf context was lost, we suppress gl.delete calls
Disposes geometry.
Geometry with buffers. Only VAO will be disposed
OptionalcontextLost: booleanIf context was lost, we suppress deleteVertexArray
Draws the currently bound geometry.
The type primitive to render.
Optionalsize: numberThe number of elements to be rendered. If not specified, all vertices after the starting vertex will be drawn.
Optionalstart: numberThe starting vertex in the geometry to start drawing from. If not specified, drawing will start from the first vertex.
OptionalinstanceCount: numberThe number of instances of the set of elements to execute. If not specified, all instances will be drawn.
ProtectedgetProtectedinitCreates 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.
ProtectedunbindUnbind/reset everything.
Update buffers of the currently bound geometry.
System plugin to the renderer to manage geometry.
Memberof
PIXI