Preparing search index...
The search index is not available
@lightningjs/renderer
@lightningjs/renderer
Canvas
CanvasTexture
Class CanvasTexture
Hierarchy
CoreContextTexture
CanvasTexture
Index
Constructors
constructor
Properties
image
state
texture
Source
tint
Cache
Accessors
renderable
Methods
free
get
Image
has
Image
load
set
Texture
Mem
Use
tint
Texture
update
Mem
Size
Constructors
constructor
new
Canvas
Texture
(
memManager
,
textureSource
)
:
CanvasTexture
Parameters
memManager
:
TextureMemoryManager
textureSource
:
Texture
Returns
CanvasTexture
Properties
Protected
image
image
:
|
undefined
|
ImageBitmap
|
HTMLCanvasElement
|
HTMLImageElement
state
state
:
|
"loaded"
|
"failed"
|
"loading"
|
"freed"
= 'freed'
Readonly
texture
Source
texture
Source
:
Texture
Protected
tint
Cache
tint
Cache
:
undefined
|
{
image
:
HTMLCanvasElement
;
key
:
string
;
}
Accessors
renderable
get
renderable
(
)
:
boolean
Returns
boolean
Methods
free
free
(
)
:
void
Returns
void
get
Image
get
Image
(
color
)
:
ImageBitmap
|
HTMLCanvasElement
|
HTMLImageElement
Parameters
color
:
IParsedColor
Returns
ImageBitmap
|
HTMLCanvasElement
|
HTMLImageElement
has
Image
has
Image
(
)
:
boolean
Returns
boolean
load
load
(
)
:
void
Returns
void
Protected
set
Texture
Mem
Use
set
Texture
Mem
Use
(
byteSize
)
:
void
Parameters
byteSize
:
number
Returns
void
Protected
tint
Texture
tint
Texture
(
source
,
color
)
:
HTMLCanvasElement
Parameters
source
:
ImageBitmap
|
HTMLCanvasElement
|
HTMLImageElement
color
:
string
Returns
HTMLCanvasElement
update
Mem
Size
update
Mem
Size
(
)
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
image
state
texture
Source
tint
Cache
Accessors
renderable
Methods
free
get
Image
has
Image
load
set
Texture
Mem
Use
tint
Texture
update
Mem
Size
@lightningjs/renderer
Loading...