dacha
    Preparing search index...

    Class RendererAPI

    API that provides rendering utilities and view management

    Offers methods for view intersection testing, bounds calculation, and direct access to the underlying PIXI.js application

    Index
    • Parameters

      • __namedParameters: RendererAPIOptions

      Returns RendererAPI

    • Adds a post-processing effect that applies to the entire scene. Effects are applied in the order they are added.

      Parameters

      • config: FilterEffectConfig

        Filter effect config with name and options

      Returns void

    • Clears all active filter effects.

      Returns void

    • Returns the bounds of an actor If actor has multiple views, the bounds will be the smallest rectangle that contains all views

      Parameters

      • actor: Actor

        Actor to get the bounds of

      Returns Bounds | null

      Bounds of the actor or null if the actor has no available views

    • Returns the current filter effect configs in the order they were added.

      Returns FilterEffectConfig[]

      Effect config objects

    • Returns the underlying PIXI.js application

      Returns Application

      PIXI.js application instance

    • Returns the actors that intersect with a point

      Parameters

      • x: number

        X coordinate of the point in scene coordinates

      • y: number

        Y coordinate of the point in scene coordinates

      Returns Actor[]

      Actors that intersect with the point

    • Returns the actors that intersect with a rectangle All coordinates should be passed in scene coordinates

      Parameters

      • minX: number

        X coordinate of the minimum point

      • minY: number

        Y coordinate of the minimum point

      • maxX: number

        X coordinate of the maximum point

      • maxY: number

        Y coordinate of the maximum point

      Returns Actor[]

      Actors that intersect with the rectangle

    • Reloads shader classes registered in the renderer.

      Parameters

      • classDenfinitions: ShaderConstructor[]

        Shader constructors to register

      Returns void

    • Removes a filter effect by config object reference.

      Parameters

      • config: FilterEffectConfig

        Same config object passed to addFilterEffect

      Returns void