Skip to content

@bloopjs/toodle


@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? ​

optional autoLoad: boolean

Defined in: textures/types.ts:113

Whether the bundle should be loaded automatically on registration.

Default ​

ts
true

cropTransparentPixels? ​

optional cropTransparentPixels: 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