PokéRogue
    Preparing search index...

    Class WebGLVertexBufferLayoutWrapper

    Wraps a WebGL vertex buffer together with its attribute layout description. This class manages the relationship between a WebGLBufferWrapper (the raw GPU buffer) and the attribute layout that describes how vertex data is arranged within it, including the stride, per-attribute byte counts, and byte offsets. It is used by Phaser's WebGL renderer to bind vertex data to shader attribute locations when drawing geometry. On construction, the layout is completed by computing stride, byte counts, and offsets from the provided attribute definitions, and any GL enum values specified as strings are resolved to their numeric equivalents.

    Index

    The WebGLBufferWrapper holding the vertex data for this layout.

    The completed attribute buffer layout, describing the stride, attributes, their types, sizes, byte counts, and byte offsets within the vertex buffer.

    renderer: WebGLRenderer

    The WebGLRenderer instance that owns this wrapper.

    • Complete the layout of the provided attribute buffer layout. This will fill in the stride, byte counts, and offsets. In addition, it will convert any GLenums specified as strings to their numeric values. This mutates the layout.

      The order of attributes within the layout forms the order of the buffer.

      Parameters

      Returns void