Type alias Viewport

Viewport: {
    optimizer: Optimizer;
    renderer: Renderer;
    resize: (() => void);
    update: ((delta) => void);
} & EditorPointer & Test

The viewport is class that handles the rendering of the scene. It's a high-level abstraction of the Renderer.

Type declaration

  • optimizer: Optimizer

    The optimizer used to optimize rendering.

  • renderer: Renderer

    The renderer used to render the scene.

  • resize: (() => void)
      • (): void
      • Method triggered by windowResize signal.

        Returns void

  • update: ((delta) => void)
      • (delta): void
      • Call this on every frame to update the debugger.

        Parameters

        • delta: number

        Returns void

Generated using TypeDoc