@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?
optionalautoLoad:boolean
Defined in: textures/types.ts:142
Whether the bundle should be loaded automatically on registration.
Default
ts
truerg8?
optionalrg8: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.