Skip to content

@bloopjs/toodle


@bloopjs/toodle / textures/types / AtlasBundleOpts

Type Alias: AtlasBundleOpts

AtlasBundleOpts = object

Defined in: textures/types.ts:117

Bundle options for registering pre-generated texture atlases

Properties

atlases

atlases: AtlasDef[]

Defined in: textures/types.ts:136

atlas definitions as pregenerated by a texture packer like https://github.com/pixijs/assetpack

Example

ts
[
  {
    json: new URL('https://example.com/atlas.json'),
  },
  {
    png: new URL('https://example.com/atlas.png'),
  },
  {
    json: new URL('https://example.com/metadata/atlas.json'),
    png: new URL('https://example.com/images/atlas.png'),
  },
]

autoLoad?

optional autoLoad: boolean

Defined in: textures/types.ts:142

Whether the bundle should be loaded automatically on registration.

Default

ts
true

rg8?

optional rg8: boolean

Defined in: textures/types.ts:148

If true, png urls will be ignored and the texture path will be inferred to be next to the json file with a .rg8.gz extension.