Classes
Type Definitions
-
AtlasManagerInfo{Object}
-
Provides information for an image inside an atlas manager.
offsetX
andoffsetY
is the position of the image inside the atlas imageimage
and the position of the hit-detection image inside the hit-detection atlas imagehitImage
.Properties:
Name Type Description offsetX
number offsetY
number image
HTMLCanvasElement hitImage
HTMLCanvasElement -
Options{Object}
-
Properties:
Name Type Argument Default Description initialSize
number <optional>
256 The size in pixels of the first atlas image.
maxSize
number <optional>
The maximum size in pixels of atlas images. Default is
webgl/MAX_TEXTURE_SIZE
or 2048 if WebGL is not supported.space
number <optional>
1 The space in pixels between images.