gameforge - v0.1.12
    Preparing search index...

    Variable loadTexturesConst

    loadTextures: LoaderParser<
        Texture<Resource>,
        IBaseTextureOptions<any>,
        LoadTextureConfig,
    >

    Loads our textures! this makes use of imageBitmaps where available. We load the ImageBitmap on a different thread using the WorkerManager We can then use the ImageBitmap as a source for a Pixi Texture

    You can customize the behavior of this loader by setting the config property.

    // Set the config
    import { loadTextures } from '@pixi/assets';
    loadTextures.config = {
    // If true we will use a worker to load the ImageBitmap
    preferWorkers: true,
    // If false we will use new Image() instead of createImageBitmap
    // If false then this will also disable the use of workers as it requires createImageBitmap
    preferCreateImageBitmap: true,
    crossOrigin: 'anonymous',
    };

    PIXI