Preparing search index...
The search index is not available
Wayward Types Viewer | 2.14.0-beta.dev.20240903.1
Wayward Types Viewer
renderer/platform/webgpu/SpriteBatchWebGpu
SpriteBatchWebGpu
Class SpriteBatchWebGpu
Hierarchy
SpriteBatchWebGpu
Implements
ISpriteBatch
Index
Constructors
constructor
Properties
capacity
id
Methods
add
begin
delete
end
remove
render
update
Constructors
constructor
new
Sprite
Batch
Web
Gpu
(
context
:
WebGpuRendererContext
, id
:
string
, capacity
:
number
, depthOffset
:
number
, yOffset
:
number
, enableAlphaMultiplcation
:
boolean
, enforceBeginAndEnd
:
boolean
)
:
SpriteBatchWebGpu
Parameters
context:
WebGpuRendererContext
id:
string
capacity:
number
depthOffset:
number
yOffset:
number
enableAlphaMultiplcation:
boolean
enforceBeginAndEnd:
boolean
Returns
SpriteBatchWebGpu
Properties
capacity
capacity
:
number
Readonly
id
id
:
string
Methods
add
add
(
tileX
:
number
, tileY
:
number
, spriteSize
:
number
, sourceX
:
number
, sourceY
:
number
, sourceSize
:
number
, offsetX
?:
number
, offsetY
?:
number
, red
?:
number
, green
?:
number
, blue
?:
number
, alpha
?:
number
)
:
undefined
|
number
Parameters
tileX:
number
tileY:
number
spriteSize:
number
sourceX:
number
sourceY:
number
sourceSize:
number
offsetX:
number
= 0
offsetY:
number
= 0
red:
number
= 255
green:
number
= 255
blue:
number
= 255
alpha:
number
= 255
Returns
undefined
|
number
begin
begin
(
)
:
void
Returns
void
delete
delete
(
)
:
void
Returns
void
end
end
(
)
:
number
Returns
number
remove
remove
(
index
:
number
)
:
boolean
Parameters
index:
number
Returns
boolean
render
render
(
x
:
number
, y
:
number
, tileScale
:
number
, viewportWidth
:
number
, viewportHeight
:
number
, blend
?:
boolean
)
:
void
Parameters
x:
number
y:
number
tileScale:
number
viewportWidth:
number
viewportHeight:
number
Optional
blend:
boolean
Returns
void
update
update
(
index
:
number
, tileX
:
number
, tileY
:
number
, spriteSize
:
number
, sourceX
:
number
, sourceY
:
number
, sourceSize
:
number
, offsetX
?:
number
, offsetY
?:
number
, red
?:
number
, green
?:
number
, blue
?:
number
, alpha
?:
number
)
:
void
Parameters
index:
number
tileX:
number
tileY:
number
spriteSize:
number
sourceX:
number
sourceY:
number
sourceSize:
number
Optional
offsetX:
number
Optional
offsetY:
number
Optional
red:
number
Optional
green:
number
Optional
blue:
number
Optional
alpha:
number
Returns
void
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
Batch
Web
Gpu
constructor
capacity
id
add
begin
delete
end
remove
render
update
Generated using
TypeDoc