Cocos Creator
手册文档
API 参考
Cocos Creator 3D
手册文档
API 参考
Cocos2d-x
手册文档
API 参考
Version: 3.1
Version: 3.5
Version: 3.4
Version: 3.3
Version: 3.2
Version: 3.0
Version: 2.4
Version: 2.3
Version: 2.2
Version: 2.1
Version: 2.0
Version: 1.10
Version: 1.9
Search
Preparing search index...
The search index is not available
CocosCreatorAPI
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
gfx
Framebuffer
Class Framebuffer
GFX 帧缓冲。
Hierarchy
Obj
Framebuffer
Index
Constructors
constructor
Properties
_color
Textures
_depth
Stencil
Texture
_device
_gfx
Type
_render
Pass
Accessors
color
Textures
depth
Stencil
Texture
gfx
Type
render
Pass
Methods
destroy
initialize
Constructors
constructor
new
Framebuffer
(
device
:
Device
)
:
Framebuffer
Parameters
device:
Device
Returns
Framebuffer
Properties
Protected
_color
Textures
_color
Textures
:
(
null
|
Texture
)
[]
= []
Protected
_depth
Stencil
Texture
_depth
Stencil
Texture
:
Texture
|
null
= null
Protected
_device
_device
:
Device
Protected
_gfx
Type
_gfx
Type
:
ObjectType
= ObjectType.UNKNOWN
Protected
_render
Pass
_render
Pass
:
RenderPass
|
null
= null
Accessors
color
Textures
get
colorTextures
(
)
:
(
null
|
Texture
)
[]
颜色纹理视图数组。
Returns
(
null
|
Texture
)
[]
depth
Stencil
Texture
get
depthStencilTexture
(
)
:
Texture
|
null
深度模板纹理视图。
Returns
Texture
|
null
gfx
Type
get
gfxType
(
)
:
ObjectType
Returns
ObjectType
render
Pass
get
renderPass
(
)
:
RenderPass
GFX 渲染过程。
Returns
RenderPass
Methods
Abstract
destroy
destroy
(
)
:
void
Returns
void
Abstract
initialize
initialize
(
info
:
FramebufferInfo
)
:
boolean
Parameters
info:
FramebufferInfo
Returns
boolean
Globals
gfx
Framebuffer
constructor
_color
Textures
_depth
Stencil
Texture
_device
_gfx
Type
_render
Pass
color
Textures
depth
Stencil
Texture
gfx
Type
render
Pass
destroy
initialize
Generated using
TypeDoc
GFX 帧缓冲。