pixi.js
    Preparing search index...

    Class GlStateSystemAdvanced

    System plugin to the renderer to manage WebGL state machines

    Implements

    Index

    Constructors

    Properties

    blendMode: BLEND_MODES

    Blend mode

    'none'
    @readonly
    polygonOffset: number

    Polygon offset

    stateId: number

    State ID

    Methods

    • Sets the state, when previous state is unknown.

      Parameters

      • state: State

        The state to set

      Returns void

    • Resets all the logic and disables the VAOs.

      Returns void

    • Sets the current state

      Parameters

      • state: State

        The state to set.

      Returns void

    • Sets whether to enable or disable blending.

      Parameters

      • value: boolean

        Turn on or off WebGl blending.

      Returns void

    • Sets the blend mode.

      Parameters

      Returns void

    • Sets whether to enable or disable cull face.

      Parameters

      • value: boolean

        Turn on or off webgl cull face.

      Returns void

    • Sets whether to enable or disable depth mask.

      Parameters

      • value: boolean

        Turn on or off webgl depth mask.

      Returns void

    • Sets whether to enable or disable depth test.

      Parameters

      • value: boolean

        Turn on or off webgl depth testing.

      Returns void

    • Sets the gl front face.

      Parameters

      • value: boolean

        true is clockwise and false is counter-clockwise

      Returns void

    • Sets whether to enable or disable polygon offset fill.

      Parameters

      • value: boolean

        Turn on or off webgl polygon offset testing.

      Returns void

    • Sets the polygon offset.

      Parameters

      • value: number

        the polygon offset

      • scale: number

        the polygon offset scale

      Returns void