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
RasterizerState
Class RasterizerState
GFX 光栅化状态。
Hierarchy
RasterizerState
Index
Constructors
constructor
Properties
_token
cull
Mode
depth
Bias
depth
Bias
Clamp
depth
Bias
Enabled
depth
Bias
Slop
is
Depth
Clip
is
Discard
is
Front
FaceCCW
is
Multisample
line
Width
polygon
Mode
shade
Model
Accessors
handle
Methods
assign
destroy
reset
Constructors
constructor
new
Rasterizer
State
(
isDiscard
?:
boolean
, polygonMode
?:
PolygonMode
, shadeModel
?:
ShadeModel
, cullMode
?:
CullMode
, isFrontFaceCCW
?:
boolean
, depthBiasEnabled
?:
boolean
, depthBias
?:
number
, depthBiasClamp
?:
number
, depthBiasSlop
?:
number
, isDepthClip
?:
boolean
, isMultisample
?:
boolean
, lineWidth
?:
number
)
:
RasterizerState
Parameters
Default value
isDiscard:
boolean
= false
Default value
polygonMode:
PolygonMode
= PolygonMode.FILL
Default value
shadeModel:
ShadeModel
= ShadeModel.GOURAND
Default value
cullMode:
CullMode
= CullMode.BACK
Default value
isFrontFaceCCW:
boolean
= true
Default value
depthBiasEnabled:
boolean
= false
Default value
depthBias:
number
= 0
Default value
depthBiasClamp:
number
= 0
Default value
depthBiasSlop:
number
= 0
Default value
isDepthClip:
boolean
= true
Default value
isMultisample:
boolean
= false
Default value
lineWidth:
number
= 1
Returns
RasterizerState
Properties
Private
_token
_token
:
never
cull
Mode
cull
Mode
:
CullMode
depth
Bias
depth
Bias
:
number
depth
Bias
Clamp
depth
Bias
Clamp
:
number
depth
Bias
Enabled
depth
Bias
Enabled
:
boolean
depth
Bias
Slop
depth
Bias
Slop
:
number
is
Depth
Clip
is
Depth
Clip
:
boolean
is
Discard
is
Discard
:
boolean
is
Front
FaceCCW
is
Front
FaceCCW
:
boolean
is
Multisample
is
Multisample
:
boolean
line
Width
line
Width
:
number
polygon
Mode
polygon
Mode
:
PolygonMode
shade
Model
shade
Model
:
ShadeModel
Accessors
handle
get
handle
(
)
:
RawBufferHandle
Returns
RawBufferHandle
Methods
assign
assign
(
rs
:
RasterizerState
)
:
void
Parameters
rs:
RasterizerState
Returns
void
destroy
destroy
(
)
:
void
Returns
void
reset
reset
(
)
:
void
Returns
void
Globals
gfx
Rasterizer
State
constructor
_token
cull
Mode
depth
Bias
depth
Bias
Clamp
depth
Bias
Enabled
depth
Bias
Slop
is
Depth
Clip
is
Discard
is
Front
FaceCCW
is
Multisample
line
Width
polygon
Mode
shade
Model
handle
assign
destroy
reset
Generated using
TypeDoc
GFX 光栅化状态。