unrail-engine
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Texture
constructor
id
image
is
Loaded
offset
rotation
scale
size
convert
ToBitmap
on
Load
Hierarchy
Texture
AnimatedSprite
Index
Constructors
constructor
Properties
id
image
is
Loaded
offset
rotation
scale
size
Methods
convert
ToBitmap
on
Load
Constructors
constructor
new
Texture
(
source
:
string
, options
?:
TextureOptions
)
:
Texture
Parameters
source:
string
Optional
options:
TextureOptions
Returns
Texture
Properties
id
id
:
number
image
image
:
HTMLImageElement
|
ImageBitmap
is
Loaded
is
Loaded
:
boolean
= false
offset
offset
:
Vector2
rotation
rotation
:
number
scale
scale
:
Vector2
size
size
:
SizeObject
Methods
convert
ToBitmap
convert
ToBitmap
(
)
:
Promise
<
Texture
>
Returns
Promise
<
Texture
>
on
Load
on
Load
(
)
:
void
Returns
void
Generated using
TypeDoc