Manages WebGL render buffers for a view.

Constructors

Methods

Constructors

Methods

  • Retrieves a render buffer by its ID, creating it if necessary.

    Parameters

    • id: string

      Unique identifier for the render buffer

    • Optionaloptions: { depthTexture?: boolean; size?: [number, number] }

      Optional configuration

      • OptionaldepthTexture?: boolean

        Whether the buffer includes a depth texture

      • Optionalsize?: [number, number]

        Buffer size [width, height]

    Returns WebGLRenderBuffer

    The requested or newly created render buffer