Preparing search index...
The search index is not available
Wayward Types Viewer | 2.14.0-beta.dev.20240903.1
Wayward Types Viewer
renderer/resources/SpritePackerBase
SpritePackerBase
Class SpritePackerBase<TextureType>
Abstract
Type Parameters
TextureType
Hierarchy
SpritePackerBase
SpritePackerWebGl
SpritePackerWebGpu
Implements
ISpritePackerPlatform
<
TextureType
>
Index
Constructors
constructor
Properties
inverse
Texture
Size
size
texture
Accessors
loaded
Sprite
Count
Methods
add
Sprite
delete
insert
Sprite
Into
Texture
load
Constructors
constructor
new
Sprite
Packer
Base
<
TextureType
>
(
size
:
number
, addNullSprite
:
boolean
, packLargeToSmall
?:
boolean
)
:
SpritePackerBase
<
TextureType
>
Type Parameters
TextureType
Parameters
size:
number
addNullSprite:
boolean
packLargeToSmall:
boolean
= false
Returns
SpritePackerBase
<
TextureType
>
Properties
Readonly
inverse
Texture
Size
inverse
Texture
Size
:
default
Readonly
size
size
:
number
Readonly
Abstract
texture
texture
:
TextureType
Accessors
loaded
Sprite
Count
get
loadedSpriteCount
(
)
:
number
Returns
number
Methods
add
Sprite
add
Sprite
(
src
:
string
, frontPack
?:
boolean
)
:
Promise
<
ISpriteInfo
>
Parameters
src:
string
Optional
frontPack:
boolean
Returns
Promise
<
ISpriteInfo
>
Abstract
delete
delete
(
)
:
void
Returns
void
Protected
Abstract
insert
Sprite
Into
Texture
insert
Sprite
Into
Texture
(
node
:
SpriteAtlasNode
, spriteContainer
:
ISpriteContainer
)
:
void
Parameters
node:
SpriteAtlasNode
spriteContainer:
ISpriteContainer
Returns
void
load
load
(
parallel
:
Parallel
)
:
Promise
<
boolean
>
Parameters
parallel:
Parallel
Returns
Promise
<
boolean
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Navigation
Modding Guide
Module Index
Common Modules
@Register
IDoodadDescription
IItemDescription
ITerrainDescription
ITileEventDescription
ICreatureDescription
In This Module
Sprite
Packer
Base
constructor
inverse
Texture
Size
size
texture
loaded
Sprite
Count
add
Sprite
delete
insert
Sprite
Into
Texture
load
Generated using
TypeDoc