Name | Type | Description |
---|---|---|
renderer |
PIXI.Renderer |
The renderer this System works for. |
Extends
Members
-
boundBuffers Object.<number, PIXI.Buffer> readonly
-
A cache of currently bound buffer, contains only two members with keys ARRAY_BUFFER and ELEMENT_ARRAY_BUFFER
-
true
if hasANGLE_instanced_arrays
extension -
true
if we has*_vertex_array_object
extension -
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 geometry
PIXI.Geometry Geometry instance
program
PIXI.Program Shader program instance
-
Binds geometry so that is can be drawn. Creating a Vao if required
Name Type Description geometry
PIXI.Geometry instance of geometry to bind
shader
PIXI.Shader instance of shader to bind
-
Check compability between a geometry and a program
Name Type Description geometry
PIXI.Geometry Geometry instance
program
PIXI.Program Program instance
-
contextChange () overrides
-
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 contextLost
boolean false optional If context was lost, we suppress
gl.delete
calls -
Disposes buffer
Name Type Default Description buffer
PIXI.Buffer buffer with data
contextLost
boolean false optional If context was lost, we suppress deleteVertexArray
-
Disposes geometry
Name Type Default Description geometry
PIXI.Geometry Geometry with buffers. Only VAO will be disposed
contextLost
boolean false optional If context was lost, we suppress deleteVertexArray
-
Draw the geometry
Name Type Description type
Number the type primitive to render
size
Number optional the number of elements to be rendered
start
Number optional Starting index
instanceCount
Number 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 geometry
PIXI.Geometry to get signature from
program
PIXI.Program to test geometry against
Returns:
Type Description String Unique signature of the geometry and program -
Creates a Vao with the same structure as the geometry and stores it on the geometry.
Name Type Description geometry
PIXI.Geometry Instance of geometry to to generate Vao for
program
PIXI.Program Instance of program
-
Reset and unbind any active VAO and geometry
-
Unbind/reset everything
-
Update buffers