@xpadev-net/niconicomments
    Preparing search index...

    Class WebGL2Renderer

    Implements

    Index

    Constructors

    Properties

    canvas: HTMLCanvasElement
    rendererName: "WebGL2Renderer"
    video?: HTMLVideoElement

    Methods

    • Draw a sub-renderer's content onto this renderer.

      The source image is read from image.canvas.

      Parameters

      • image: IRenderer
      • x: number
      • y: number
      • Optionalwidth: number
      • Optionalheight: number

      Returns void

    • Execute all buffered draw commands.

      Ordering contract: GPU-accelerated commands (drawImage, fillRect, strokeRect) are rendered first, then Canvas 2D helper operations (text/path) are composited on top. Callers must ensure fillText/strokeText are issued AFTER all drawImage calls within a single frame.

      Returns void

    • Return true when the renderer's committed surface is no longer trustworthy and the owner should redraw even if its frame inputs are unchanged.

      Implementations that report true should keep doing so until a subsequent successful flush() commits a fresh frame.

      Returns boolean