Rapid Render API
    Preparing search index...

    Interface IAppOptions

    Options for initializing the Rapid application.

    interface IAppOptions {
        antialias?: boolean;
        backgroundColor?: Color;
        canvas: HTMLCanvasElement;
        height?: number;
        logicHeight?: number;
        logicWidth?: number;
        physicsHeight?: number;
        physicsWidth?: number;
        premultipliedAlpha?: boolean;
        roundPixels?: boolean;
        scaleMode?: CanvasScaleMode;
        textureFilter?: TextureFilterMode;
        width?: number;
    }
    Index

    Properties

    antialias?: boolean

    Whether to enable MSAA antialiasing on the WebGL canvas. Default: false.

    backgroundColor?: Color

    The default clear color for the application background.

    canvas: HTMLCanvasElement

    The HTML canvas element to render onto.

    height?: number

    Alias ​​for logicHeight

    logicHeight?: number

    The logical height of the application (CSS pixels).

    logicWidth?: number

    The logical width of the application (CSS pixels).

    physicsHeight?: number

    The physical height of the application (actual pixels).

    physicsWidth?: number

    The physical width of the application (actual pixels).

    premultipliedAlpha?: boolean

    Whether textures are uploaded with premultiplied alpha. Default: true.

    roundPixels?: boolean
    scaleMode?: CanvasScaleMode
    textureFilter?: TextureFilterMode
    width?: number

    Alias ​​for logicWidth