.. | |||
src | 6 years ago | ||
test | 6 years ago | ||
LICENSE | 7 years ago | ||
README.md | 6 years ago | ||
package.json | 6 years ago |
npm install @pixi/loaders
Using the loader directly:
import { Loader } from '@pixi/loaders'; const loader = new Loader(); loader.add('path/to/file.jpg'); loader.load(() => {});
Using the loader as an Application plugin:
import { LoaderPlugin } from '@pixi/loaders'; import { Application } from '@pixi/app'; Application.registerPlugin(LoaderPlugin); const app = new Application(); app.loader.add('path/to/file.jpg'); app.loader.load(() => {});