Type Alias getFramebuffer

getFramebuffer: ((options: {
    depth?: object;
    stencil?: object;
    width?: number;
    height?: number;
    color?: texture[];
}) => framebuffer)

A function to create or update a GL framebuffer; via a GL api.

See

This

Updates any this value's framebuffer in-place (or similar handling); otherwise if nullish, returns a new framebuffer.

Returns

A GL framebuffer created or updated by any given options, or an object serving that purpose.

Type declaration

    • (options): framebuffer
    • Parameters

      • options: {
            depth?: object;
            stencil?: object;
            width?: number;
            height?: number;
            color?: texture[];
        }

        Options to create or update a GL framebuffer; with:

        • depth: Any framebuffer depth attachment, or a flag for whether it should be created.
        • stencil: Any framebuffer stencil attachment, or a flag for whether it should be created.
        • width: The width of the framebuffer.
        • height: The height of the framebuffer.
        • color: The texture attachments to use.
        • Optionaldepth?: object
        • Optionalstencil?: object
        • Optionalwidth?: number
        • Optionalheight?: number
        • Optionalcolor?: texture[]

      Returns framebuffer