@bloopjs/toodle / textures/types / TextureBundleOpts
Type Alias: TextureBundleOpts
TextureBundleOpts =
object
Defined in: textures/types.ts:95
Bundle options for registering multiple individual textures
Properties
autoLoad?
optionalautoLoad:boolean
Defined in: textures/types.ts:113
Whether the bundle should be loaded automatically on registration.
Default
ts
truecropTransparentPixels?
optionalcropTransparentPixels:boolean
Defined in: textures/types.ts:108
Whether the image should be cropped down to the minimal bounding box for non-transparent pixels.
See Transparent Pixel Cropping for more information.
textures
textures:
Record<string,URL>
Defined in: textures/types.ts:101
A record of texture ids and URLs. ids must be unique within a bundle