Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SpritePacker

Hierarchy

  • SpritePacker

Index

Constructors

Properties

Methods

Constructors

constructor

  • new SpritePacker(spritePack: SpritePack, gl: WebGL2RenderingContext, size: number, nullSprite: boolean, padding: number, packLargeToSmall?: boolean): SpritePacker
  • Parameters

    • spritePack: SpritePack
    • gl: WebGL2RenderingContext
    • size: number
    • nullSprite: boolean
    • padding: number
    • Default value packLargeToSmall: boolean = false

    Returns SpritePacker

Properties

Readonly inverseTextureSize

inverseTextureSize: Vector2

Readonly size

size: number

Readonly texture

texture: WebGLTexture

Methods

addSprite

delete

  • delete(): void
  • Returns void

load

  • Returns Promise<boolean>

Generated using TypeDoc