sej
    Preparing search index...

    Class AbstractRenderer

    An abstract renderer.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    _camera: Camera
    _scene: Object3D<Object3DEventMap>
    domElement: HTMLCanvasElement

    A canvas where the renderer draws its output.

    freeze: boolean

    If true, the renderer will not render any new frames.

    false
    

    Methods

    • Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.

      Returns void

    • Set the camera to be used by this renderer.

      Parameters

      • camera: Camera

        New camera to be used.

      Returns void

    • Resizes the output canvas to (width, height), and also sets the viewport to fit that size, starting in (0, 0).

      Parameters

      • _width: number
      • _height: number
      • Optional_updateStyle: boolean

      Returns void

    • E2E test method.

      This method should return true if the test passes, and false if it fails. Check the method itself for more information.

      Returns boolean