phaser - v4.0.0-rc.4
    Preparing search index...

    Wrapper for a WebGL Vertex Array Object (VAO).

    A WebGLVertexArrayObject should never be exposed outside the WebGLRenderer, so the WebGLRenderer can handle context loss and other events without other systems having to be aware of it. Always use WebGLVAOWrapper instead.

    Index

    Constructors

    Properties

    attributeBufferLayouts: WebGLVertexBufferLayoutWrapper[]

    The vertex buffers containing attribute data for this VAO, alongside the relevant attribute layout.

    glState: object

    The state object used to bind this VAO.

    indexBuffer: WebGLBufferWrapper

    The element array buffer used in this VAO, if any.

    The shader program that this VAO is associated with.

    renderer: WebGLRenderer

    The WebGLRenderer instance that owns this wrapper.

    vertexArrayObject: WebGLVertexArrayObject

    The WebGLVertexArrayObject being wrapped by this class.

    This property could change at any time. Therefore, you should never store a reference to this value. It should only be passed directly to the WebGL API for drawing.

    Methods

    • Binds this WebGLVAOWrapper to the current WebGLRenderingContext.

      Returns void

    • Destroys this WebGLVAOWrapper and removes all associated resources.

      Returns void