pixi.js
    Preparing search index...

    Class GlGeometrySystemAdvanced

    System plugin to the renderer to manage geometry.

    Implements

    Index

    Constructors

    Properties

    hasInstance: boolean

    true if has ANGLE_instanced_arrays extension.

    hasVao: boolean

    true if we has *_vertex_array_object extension.

    Methods

    • Binds geometry so that is can be drawn. Creating a Vao if required

      Parameters

      • Optionalgeometry: Geometry

        Instance of geometry to bind.

      • Optionalprogram: GlProgram

        Instance of program to use vao for.

      Returns void

    • Generic destroy methods to be overridden by the subclass

      Returns void

    • Dispose all WebGL resources of all managed geometries.

      Parameters

      • OptionalcontextLost: boolean = false

        If context was lost, we suppress gl.delete calls

      Returns void

    • Draws the currently bound geometry.

      Parameters

      • Optionaltopology: Topology

        The type primitive to render.

      • Optionalsize: number

        The number of elements to be rendered. If not specified, all vertices after the starting vertex will be drawn.

      • Optionalstart: number

        The starting vertex in the geometry to start drawing from. If not specified, drawing will start from the first vertex.

      • OptionalinstanceCount: number

        The number of instances of the set of elements to execute. If not specified, all instances will be drawn.

      Returns this

    • Reset and unbind any active VAO and geometry.

      Returns void

    • Update buffers of the currently bound geometry.

      Returns void