PokéRogue
    Preparing search index...

    Type Alias DrawingContextOptions

    Configuration settings for a DrawingContext.

    type DrawingContextOptions = {
        alphaStrategy?: AlphaStrategy;
        autoClear?: boolean | boolean[];
        blendMode?: number;
        camera?: Camera | null;
        clearColor?: number[];
        colorWritemask?: boolean[];
        copyFrom?: DrawingContext;
        enableMipmap?: boolean;
        height?: number;
        pool?: DrawingContextPool;
        stencilParameters?: WebGLStencilParameters;
        useCanvas?: boolean;
        width?: number;
    }
    Index
    alphaStrategy?: AlphaStrategy

    The alpha strategy to use when rendering.

    autoClear?: boolean | boolean[]

    Whether to automatically clear the framebuffer when the context comes into use. If an array, the elements are whether to clear the color, depth, and stencil buffers respectively.

    blendMode?: number

    The blend mode to use when rendering.

    camera?: Camera | null

    The camera to use for this context.

    clearColor?: number[]

    The color to clear the framebuffer with. This is an array of 4 values: red, green, blue, alpha.

    colorWritemask?: boolean[]

    The color writemask to use when rendering. This is an array of 4 values: red, green, blue, alpha.

    copyFrom?: DrawingContext

    The DrawingContext to copy from.

    enableMipmap?: boolean

    Whether to enable mipmaps on the framebuffer texture, if it exists.

    height?: number

    The height of the framebuffer, used if copyFrom and useCanvas are not set. Default is the renderer height.

    The pool to return to when this context is no longer needed. Used only for temporary contexts.

    stencilParameters?: WebGLStencilParameters

    The stencil parameters to use when rendering.

    useCanvas?: boolean

    Whether to use the canvas as the framebuffer.

    width?: number

    The width of the framebuffer, used if copyFrom and useCanvas are not set. Default is the renderer width.