Class Renderbuffer

A buffer that can contain an image or be the source or target of a rendering operation.

Hierarchy

  • Renderbuffer

Constructors

Properties

context: Context

The rendering context of this renderbuffer.

The format of this renderbuffer.

height: number

The height of this renderbuffer.

internal: WebGLRenderbuffer

The WebGL API interface of this renderbuffer.

width: number

The width of this renderbuffer.

Methods

  • Executes the given function with this renderbuffer bound, then re-binds the previously-bound renderbuffer.

    Type Parameters

    • T

    Parameters

    • f: ((renderbuffer) => T)

      The function to execute.

        • (renderbuffer): T
        • Parameters

          Returns T

    Returns T

    The return value of the executed function.

  • Binds the given renderbuffer.

    Parameters

    • context: Context

      The rendering context.

    • renderbuffer: null | WebGLRenderbuffer

      The renderbuffer.

    Returns void

  • Gets the currently-bound renderbuffer.

    Parameters

    • context: Context

      The rendering context.

    Returns null | WebGLRenderbuffer

    The renderbuffer.

  • Unbinds all renderbuffers from the given rendering context.

    Parameters

    • context: Context

      The rendering context.

    Returns void

Generated using TypeDoc