Constructor
new Sprite(geometry, material)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
geometry |
T | |
material |
U |
Classes
Methods
(static) render(ctx, position, orientation, scale, sprite, dt)
- Source:
- Deprecated:
- Yes
Parameters:
Name | Type | Description |
---|---|---|
ctx |
CanvasRenderingContext2D | |
position |
Vector2 | |
orientation |
number | |
scale |
Vector2 | |
sprite |
Sprite.<T, U> | |
dt |
number |