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_NATIVEBoolean -
An array of attributes
-
A boolean flag
-
The current WebGL rendering context
-
Methods
-
Uses this vao
-
Name Type Description bufferPIXI.gl.GLBuffer attribute* typeString normalizedBoolean strideNumber startNumber -
Name Type Description bufferPIXI.gl.GLBuffer -
Binds the buffer
-
Unbinds this vao and disables it
-
Destroy this vao
-
Name Type Description typeNumber sizeNumber startNumber -
Unbinds the buffer