gameforge - v0.1.12
    Preparing search index...

    Class ParticleRenderer

    Renderer for Particles that is designer for speed over feature set.

    PIXI

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    renderer: Renderer

    The renderer this manager works for.

    shader: Shader

    The default shader that is used if a sprite doesn't have a more specific one.

    state: State

    The WebGL state in which this renderer will work.

    tempMatrix: Matrix

    Methods

    • Destroys the ParticleRenderer.

      Returns void

    • Stub method that should be used to empty the current batch by rendering objects now.

      Returns void

    • Renders the particle container object.

      Parameters

      Returns void

    • Stub method that initializes any state required before rendering starts. It is different from the prerender signal, which occurs every frame, in that it is called whenever an object requests this renderer specifically.

      Returns void

    • Stops the renderer. It should free up any state and become dormant.

      Returns void

    • Uploads the position.

      Parameters

      • children: Sprite[]

        the array of sprites to render

      • startIndex: number

        the index to start from in the children array

      • amount: number

        the amount of children that will have their positions uploaded

      • array: number[]

        The vertices to upload.

      • stride: number

        Stride to use for iteration.

      • offset: number

        Offset to start at.

      Returns void

    • Uploads the rotation.

      Parameters

      • children: Sprite[]

        the array of sprites to render

      • startIndex: number

        the index to start from in the children array

      • amount: number

        the amount of children that will have their rotation uploaded

      • array: number[]

        The vertices to upload.

      • stride: number

        Stride to use for iteration.

      • offset: number

        Offset to start at.

      Returns void

    • Uploads the tint.

      Parameters

      • children: Sprite[]

        the array of sprites to render

      • startIndex: number

        the index to start from in the children array

      • amount: number

        the amount of children that will have their rotation uploaded

      • array: number[]

        The vertices to upload.

      • stride: number

        Stride to use for iteration.

      • offset: number

        Offset to start at.

      Returns void

    • Uploads the UVs.

      Parameters

      • children: Sprite[]

        the array of sprites to render

      • startIndex: number

        the index to start from in the children array

      • amount: number

        the amount of children that will have their rotation uploaded

      • array: number[]

        The vertices to upload.

      • stride: number

        Stride to use for iteration.

      • offset: number

        Offset to start at.

      Returns void

    • Uploads the vertices.

      Parameters

      • children: Sprite[]

        the array of sprites to render

      • startIndex: number

        the index to start from in the children array

      • amount: number

        the amount of children that will have their vertices uploaded

      • array: number[]

        The vertices to upload.

      • stride: number

        Stride to use for iteration.

      • offset: number

        Offset to start at.

      Returns void