Helper class to work with WebGL VertexArrayObjects (vaos) Only works if WebGL extensions are enabled (they usually are)
Name | Type | Description |
---|---|---|
gl |
WebGLRenderingContext |
The current WebGL rendering context |
Members
-
Lets the VAO know if you should use the WebGL extension or the native methods. Some devices behave a bit funny when using the newer extensions (im looking at you ipad 2!) If you find on older devices that things have gone a bit weird then set this to true.
Properties:
Name Type Description FORCE_NATIVE
Boolean -
An array of attributes
-
A boolean flag
-
The current WebGL rendering context
-
Methods
-
Uses this vao
-
Name Type Description buffer
PIXI.gl.GLBuffer attribute
* type
String normalized
Boolean stride
Number start
Number -
Name Type Description buffer
PIXI.gl.GLBuffer -
Binds the buffer
-
Unbinds this vao and disables it
-
Destroy this vao
-
Name Type Description type
Number size
Number start
Number -
Unbinds the buffer