public class RasterizerState extends GraphicsResource
Modifier and Type | Field and Description |
---|---|
static RasterizerState |
CullClockwise
A built-in state object with settings for culling primitives with clockwise winding order.
|
static RasterizerState |
CullCounterClockwise
A built-in state object with settings for culling primitives with counter-clockwise winding order.
|
static RasterizerState |
CullNone
A built-in state object with settings for not culling any primitives.
|
_parent, Disposing, Name, Tag
Modifier and Type | Method and Description |
---|---|
CullMode |
getCullMode() |
float |
getDepthBias()
Retrieves the depth bias for polygons, which is the amount of bias to apply to the depth of a primitive to alleviate depth testing problems for primitives of similar
depth.
|
FillMode |
getFillMode() |
boolean |
getMultiSampleAntiAlias() |
boolean |
getScissorTestEnable() |
float |
getSlopeScaleDepthBias()
Gets a bias value that takes into account the slope of a polygon.
|
void |
setCullMode(CullMode value)
Specifies the conditions for culling or removing triangles.
|
void |
setDepthBias(float value)
Sets the depth bias for polygons, which is the amount of bias to apply to the depth of a primitive to alleviate depth testing problems for primitives of similar
depth.
|
void |
setFillMode(FillMode value)
The fill mode, which defines how a triangle is filled during rendering.
|
void |
setMultiSampleAntiAlias(boolean value)
Enables or disables multisample antialiasing.
|
void |
setScissorTestEnable(boolean value)
Enables or disables scissor testing.
|
void |
setSlopeScaleDepthBias(float value)
Sets a bias value that takes into account the slope of a polygon.
|
Dispose, Dispose, finalize, getGraphicsDevice, IsDisposed, raise_disposing, toString
public static final RasterizerState CullClockwise
public static final RasterizerState CullCounterClockwise
public static final RasterizerState CullNone
public CullMode getCullMode()
public void setCullMode(CullMode value)
value
- public float getDepthBias()
public void setDepthBias(float value)
public FillMode getFillMode()
public void setFillMode(FillMode value)
public boolean getMultiSampleAntiAlias()
public void setMultiSampleAntiAlias(boolean value)
public boolean getScissorTestEnable()
public void setScissorTestEnable(boolean value)
public float getSlopeScaleDepthBias()
public void setSlopeScaleDepthBias(float value)