Small World Engine API Reference - v0.46.1
    Preparing search index...

    Interface EngineOptions

    Global engine configuration options.

    interface EngineOptions {
        canvasId?: string;
        enableInspector?: boolean;
        fullscreen?: boolean;
        height?: number;
        inputMode?: InputMode;
        postProcessing?: PostProcessingConfig;
        projectionInstance?: AbstractProjection;
        projectionOptions?: ProjectionOptions;
        projectionType?: ProjectionType;
        quality?: QualityConfig;
        renderer?: EngineRendererConfig[];
        rendererType?: RendererType;
        width?: number;
    }
    Index

    Properties

    canvasId?: string

    The ID of the canvas element in the DOM. Defaults to "SmallWorld".

    enableInspector?: boolean

    Whether to enable the built-in Gadget Inspector overlay (defaults to false/true depending on setup).

    fullscreen?: boolean

    Whether the engine should automatically resize the canvas to full screen.

    height?: number

    Fixed height in pixels (ignored if fullscreen is true).

    inputMode?: InputMode

    The behavior of horizontal input keys (A/D). Defaults to TANK.

    postProcessing?: PostProcessingConfig

    Optional post-processing settings.

    projectionInstance?: AbstractProjection

    A fully constructed projection instance. When provided, projectionOptions and projection type are ignored. Use this to supply a custom or third-party projection.

    projectionOptions?: ProjectionOptions

    Projection startup parameters (near, far, fov, orthoSize).

    projectionType?: ProjectionType

    Default camera projection type.

    quality?: QualityConfig

    Optional quality settings.

    Detailed renderer configurations.

    rendererType?: RendererType

    Primary renderer type to attempt initialization.

    width?: number

    Fixed width in pixels (ignored if fullscreen is true).