| Name | Type | Description |
|---|---|---|
renderer |
PIXI.Renderer |
The renderer this System works for. |
Extends
Members
-
trueif supportgl.UNSIGNED_INTingl.drawElementsorgl.drawElementsInstanced -
trueif hasANGLE_instanced_arraysextension -
trueif we has*_vertex_array_objectextension -
Cache for all buffers by id, used in case renderer gets destroyed or for profiling
-
Cache for all geometries by id, used in case renderer gets destroyed or for profiling
-
renderer PIXI.Renderer inherited
-
The renderer this manager works for.
Methods
-
Activate vertex array object
Name Type Description geometryPIXI.Geometry Geometry instance
programPIXI.Program Shader program instance
-
Binds geometry so that is can be drawn. Creating a Vao if required
Name Type Description geometryPIXI.Geometry instance of geometry to bind
shaderPIXI.Shader optional instance of shader to use vao for
-
Check compability between a geometry and a program
Name Type Description geometryPIXI.Geometry Geometry instance
programPIXI.Program Program instance
-
Sets up the renderer context and necessary buffers.
-
destroy () inherited
-
Generic destroy methods to be overridden by the subclass
-
dispose all WebGL resources of all managed geometries and buffers
Name Type Default Description contextLostboolean false optional If context was lost, we suppress
gl.deletecalls -
Disposes buffer
Name Type Default Description bufferPIXI.Buffer buffer with data
contextLostboolean false optional If context was lost, we suppress deleteVertexArray
-
Disposes geometry
Name Type Default Description geometryPIXI.Geometry Geometry with buffers. Only VAO will be disposed
contextLostboolean false optional If context was lost, we suppress deleteVertexArray
-
Draw the geometry
Name Type Description typeNumber the type primitive to render
sizeNumber optional the number of elements to be rendered
startNumber optional Starting index
instanceCountNumber optional the number of instances of the set of elements to execute
-
Takes a geometry and program and generates a unique signature for them.
Name Type Description geometryPIXI.Geometry to get signature from
programPIXI.Program to test geometry against
Returns:
Type Description String Unique signature of the geometry and program -
Creates or gets Vao with the same structure as the geometry and stores it on the geometry. If vao is created, it is bound automatically.
Name Type Description geometryPIXI.Geometry Instance of geometry to to generate Vao for
programPIXI.Program Instance of program
-
Reset and unbind any active VAO and geometry
-
Unbind/reset everything
-
Update buffers