Preparing search index...
The search index is not available
@lightningjs/core
@lightningjs/core
Lightning
types
TextureManager
Class TextureManager
Index
Constructors
constructor
Properties
texture
Source
Hashmap
Accessors
used
Memory
Methods
add
To
Lookup
Map
destroy
free
Texture
Source
free
Unused
Texture
Sources
gc
get
Reusable
Texture
Source
get
Texture
Source
upload
Texture
Source
Constructors
constructor
new
TextureManager
(
stage
:
Lightning
.
Stage
)
:
TextureManager
Parameters
stage
:
Lightning
.
Stage
Returns
TextureManager
Properties
texture
Source
Hashmap
textureSourceHashmap
:
Map
<
string
,
Lightning
.
types
.
TextureSource
>
Accessors
used
Memory
get
usedMemory
()
:
number
Returns
number
Methods
add
To
Lookup
Map
addToLookupMap
(
textureSource
:
Lightning
.
types
.
TextureSource
)
:
void
Parameters
textureSource
:
Lightning
.
types
.
TextureSource
Returns
void
destroy
destroy
()
:
void
Returns
void
free
Texture
Source
freeTextureSource
(
textureSource
:
Lightning
.
types
.
TextureSource
)
:
void
Parameters
textureSource
:
Lightning
.
types
.
TextureSource
Returns
void
free
Unused
Texture
Sources
freeUnusedTextureSources
()
:
void
Returns
void
gc
gc
()
:
void
Do not call this method directly! Use
Stage.gc()
instead.
Returns
void
get
Reusable
Texture
Source
getReusableTextureSource
(
id
:
string
)
:
Lightning
.
types
.
TextureSource
Parameters
id
:
string
Returns
Lightning
.
types
.
TextureSource
get
Texture
Source
getTextureSource
(
func
:
Loader
,
id
:
string
)
:
Lightning
.
types
.
TextureSource
Parameters
func
:
Loader
id
:
string
Returns
Lightning
.
types
.
TextureSource
upload
Texture
Source
uploadTextureSource
(
textureSource
:
Lightning
.
types
.
TextureSource
,
options
:
unknown
,
)
:
void
Parameters
textureSource
:
Lightning
.
types
.
TextureSource
options
:
unknown
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
texture
Source
Hashmap
Accessors
used
Memory
Methods
add
To
Lookup
Map
destroy
free
Texture
Source
free
Unused
Texture
Sources
gc
get
Reusable
Texture
Source
get
Texture
Source
upload
Texture
Source
@lightningjs/core
Loading...
Do not call this method directly! Use
Stage.gc()
instead.