Constructors
constructor
- new default(resourceLoader: default, gl: WebGL2RenderingContext, size: number, addNullSprite: boolean, packLargeToSmall?: boolean): default
-
Parameters
-
resourceLoader: default
-
gl: WebGL2RenderingContext
-
size: number
-
addNullSprite: boolean
-
packLargeToSmall: boolean = false
Properties
Readonly
inverseTextureSize
Readonly
size
size: number
Readonly
texture
texture: WebGLTexture
Accessors
loadedSpriteCount
- get loadedSpriteCount(): number
-
Returns number
Methods
addSprite
- addSprite(src: string, frontPack?: boolean): Promise<ISpriteInfo>
-
Parameters
-
src: string
-
Optional
frontPack: boolean
delete
- delete(): void
-
Returns void
load
- load(): Promise<boolean>
-
Returns Promise<boolean>