Preparing search index...
The search index is not available
Wayward Types Viewer | 2.14.0-beta.dev.20240903.1
Wayward Types Viewer
renderer/platform/webgl/SpritePackerWebGl
SpritePackerWebGl
Class SpritePackerWebGl
Hierarchy
SpritePackerBase
<
WebGLTexture
>
SpritePackerWebGl
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
Web
Gl
(
gl
:
WebGL2RenderingContext
, size
:
number
, addNullSprite
:
boolean
, packLargeToSmall
?:
boolean
)
:
SpritePackerWebGl
Parameters
gl:
WebGL2RenderingContext
size:
number
addNullSprite:
boolean
packLargeToSmall:
boolean
= false
Returns
SpritePackerWebGl
Properties
Readonly
inverse
Texture
Size
inverse
Texture
Size
:
default
Readonly
size
size
:
number
Readonly
texture
texture
:
WebGLTexture
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
>
delete
delete
(
)
:
void
Returns
void
Protected
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
Web
Gl
constructor
inverse
Texture
Size
size
texture
loaded
Sprite
Count
add
Sprite
delete
insert
Sprite
Into
Texture
load
Generated using
TypeDoc