Search
Preparing search index...
The search index is not available
Spider Engine API
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Texture
Class Texture
Hierarchy
GraphicAsset
Texture
RenderTarget
Texture2D
StaticCubemap
MemoryTexture
FontTexture
DrawableTexture
Index
Constructors
constructor
Properties
_texture
Id
deleted
id
is
Persistent
name
template
Path
Accessors
texture
Id
Methods
begin
copy
deserialize
destroy
get
Height
get
Width
graphic
Load
graphic
Unload
isA
is
Loaded
save
serialize
set
Property
set
State
upgrade
Constructors
constructor
new
Texture
(
)
:
Texture
Returns
Texture
Properties
Protected
_texture
Id
_texture
Id
:
WebGLTexture
|
null
= null
deleted
deleted
:
AsyncEvent
<
string
>
= new AsyncEvent<string>()
id
id
:
string
is
Persistent
is
Persistent
:
boolean
= false
name
name
:
string
Optional
template
Path
template
Path
:
undefined
|
string
Accessors
texture
Id
get
textureId
(
)
:
null
|
WebGLTexture
Returns
null
|
WebGLTexture
Methods
begin
begin
(
stage
:
number
)
:
boolean
Parameters
stage:
number
Returns
boolean
copy
copy
(
)
:
UniqueObject
Returns
UniqueObject
deserialize
deserialize
(
json
:
SerializedObjectType
)
:
Promise
<
SerializableObject
>
|
SerializableObject
Parameters
json:
SerializedObjectType
Returns
Promise
<
SerializableObject
>
|
SerializableObject
destroy
destroy
(
)
:
void
Returns
void
get
Height
get
Height
(
)
:
number
Returns
number
get
Width
get
Width
(
)
:
number
Returns
number
graphic
Load
graphic
Load
(
)
:
boolean
Returns
boolean
graphic
Unload
graphic
Unload
(
)
:
void
Returns
void
isA
isA<T>
(
type
:
object
)
:
boolean
Type parameters
T
Parameters
type:
object
constructor
:
function
new __type
(
...
args
:
any
[]
)
:
T
Parameters
Rest
...
args:
any
[]
Returns
T
Returns
boolean
is
Loaded
is
Loaded
(
)
:
boolean
Returns
boolean
save
save
(
folderPath
?:
undefined
|
string
)
:
void
Parameters
Optional
folderPath:
undefined
|
string
Returns
void
serialize
serialize
(
)
:
SerializedObjectType
Returns
SerializedObjectType
set
Property
set
Property
(
name
:
string
, value
:
any
)
:
void
Parameters
name:
string
value:
any
Returns
void
set
State
set
State<T>
(
props
:
ObjectProps
<
T
>
)
:
void
Type parameters
T
Parameters
props:
ObjectProps
<
T
>
Returns
void
upgrade
upgrade
(
json
:
SerializedObject
, previousVersion
:
number
)
:
SerializedObject
Parameters
json:
SerializedObject
previousVersion:
number
Returns
SerializedObject
Globals
Texture
constructor
_texture
Id
deleted
id
is
Persistent
name
template
Path
texture
Id
begin
copy
deserialize
destroy
get
Height
get
Width
graphic
Load
graphic
Unload
isA
is
Loaded
save
serialize
set
Property
set
State
upgrade