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
RenderTarget
Class RenderTarget
Hierarchy
Texture
RenderTarget
Index
Constructors
constructor
Events
size
Changed
Properties
_texture
Id
deleted
id
is
Persistent
name
template
Path
Accessors
height
texture
Id
valid
width
Methods
begin
bind
copy
deserialize
destroy
get
Height
get
Width
graphic
Load
graphic
Unload
isA
is
Loaded
save
serialize
set
Property
set
State
upgrade
Constructors
constructor
new
Render
Target
(
width
?:
Size
, height
?:
Size
, rgba
?:
undefined
|
false
|
true
, persistent
?:
undefined
|
false
|
true
, filtering
?:
undefined
|
number
, cubeMap
?:
undefined
|
false
|
true
)
:
RenderTarget
Parameters
Optional
width:
Size
Optional
height:
Size
Optional
rgba:
undefined
|
false
|
true
Optional
persistent:
undefined
|
false
|
true
Optional
filtering:
undefined
|
number
Optional
cubeMap:
undefined
|
false
|
true
Returns
RenderTarget
Events
size
Changed
size
Changed
:
VoidAsyncEvent
= new VoidAsyncEvent()
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
height
set
height
(
height
:
Size
)
:
void
Parameters
height:
Size
Returns
void
texture
Id
get
textureId
(
)
:
null
|
WebGLTexture
Returns
null
|
WebGLTexture
valid
get
valid
(
)
:
boolean
Returns
boolean
width
set
width
(
width
:
Size
)
:
void
Parameters
width:
Size
Returns
void
Methods
begin
begin
(
stage
:
number
)
:
boolean
Parameters
stage:
number
Returns
boolean
bind
bind
(
cubeMapFace
?:
undefined
|
number
)
:
boolean
Parameters
Optional
cubeMapFace:
undefined
|
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
Render
Target
constructor
size
Changed
_texture
Id
deleted
id
is
Persistent
name
template
Path
height
texture
Id
valid
width
begin
bind
copy
deserialize
destroy
get
Height
get
Width
graphic
Load
graphic
Unload
isA
is
Loaded
save
serialize
set
Property
set
State
upgrade