phaser - v3.90.0
    Preparing search index...

    Wrapper for a WebGL attribute location, containing all the information that was used to create it.

    A WebGLAttribLocation 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 WebGLAttribLocationWrapper instead.

    Index

    Constructors

    • Parameters

      • gl: WebGLRenderingContext

        The WebGLRenderingContext to create the WebGLAttribLocation for.

      • program: WebGLProgramWrapper

        The WebGLProgram that this location refers to. This must be created first.

      • name: string

        The name of this location, as defined in the shader source code.

      Returns WebGLAttribLocationWrapper

    Properties

    gl: WebGLRenderingContext

    The WebGLRenderingContext that owns this location.

    name: string

    The name of this location, as defined in the shader source code.

    The WebGLProgram that this location refers to.

    webGLAttribLocation: number

    The WebGLAttribLocation 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

    • Creates the WebGLAttribLocation.

      Returns void

    • Destroys this WebGLAttribLocationWrapper.

      Returns void