clear: ((options: {
    color?: number[];
    depth?: number;
    stencil?: number;
    framebuffer?: framebuffer;
}) => any)

A function to clear GL output view or framebuffer; via a GL api.

See

Type declaration

    • (options): any
    • Parameters

      • options: {
            color?: number[];
            depth?: number;
            stencil?: number;
            framebuffer?: framebuffer;
        }

        Options to clear GL; with:

        • color: The values to clear any color buffers with.
        • depth: The value to clear any depth buffer with.
        • stencil: The value to clear any stencil buffer with.
        • framebuffer: Any framebuffer to clear; if not given, clears any framebuffer already bound, or the view if none are bound.
        • Optionalcolor?: number[]
        • Optionaldepth?: number
        • Optionalstencil?: number
        • Optionalframebuffer?: framebuffer

      Returns any