Holds information about a raster state.
More...
Holds information about a raster state.
A raster state drives how the rasterization occur for primitives rendered.
See RasterStateManager::createOrRetrieve() or RasterState::create() for instantiation.
◆ ~RasterState()
virtual nkGraphics::RasterState::~RasterState |
( |
| ) |
|
|
virtual |
◆ getFillMode()
virtual FILL_MODE nkGraphics::RasterState::getFillMode |
( |
| ) |
const |
|
pure virtual |
- Returns
- The fill mode used.
◆ getCullMode()
virtual CULL_MODE nkGraphics::RasterState::getCullMode |
( |
| ) |
const |
|
pure virtual |
- Returns
- The cull mode used.
◆ getFrontCounterClockwise()
virtual bool nkGraphics::RasterState::getFrontCounterClockwise |
( |
| ) |
const |
|
pure virtual |
- Returns
- Whether the front side of primitives is chosen according to their point being counter clockwise (true) or not (false).
◆ getDepthBias()
virtual int nkGraphics::RasterState::getDepthBias |
( |
| ) |
const |
|
pure virtual |
- Returns
- The depth bias used.
◆ getDepthBiasClamp()
virtual float nkGraphics::RasterState::getDepthBiasClamp |
( |
| ) |
const |
|
pure virtual |
- Returns
- The depth bias clamp used.
◆ getSlopeScaledDepthBias()
virtual float nkGraphics::RasterState::getSlopeScaledDepthBias |
( |
| ) |
const |
|
pure virtual |
- Returns
- The slope scaled depth bias used.
◆ getDepthClipEnabled()
virtual bool nkGraphics::RasterState::getDepthClipEnabled |
( |
| ) |
const |
|
pure virtual |
- Returns
- Whether depth clip is enabled (true) or not (false).
◆ getScissorEnabled()
virtual bool nkGraphics::RasterState::getScissorEnabled |
( |
| ) |
const |
|
pure virtual |
- Returns
- Whether the scissor test is enabled (true) or not (false).
◆ getMultiSampleEnabled()
virtual bool nkGraphics::RasterState::getMultiSampleEnabled |
( |
| ) |
const |
|
pure virtual |
- Returns
- Whether the multi sampling is enabled (true) or not (false).
◆ getAntiAliasedLineEnabled()
virtual bool nkGraphics::RasterState::getAntiAliasedLineEnabled |
( |
| ) |
const |
|
pure virtual |
- Returns
- Whether the lines are anti aliased (true) or not (false).
◆ getForcedSampleCount()
virtual unsigned int nkGraphics::RasterState::getForcedSampleCount |
( |
| ) |
const |
|
pure virtual |
- Returns
- The forced sample count used.
◆ getConservativeRasterizationEnabled()
virtual bool nkGraphics::RasterState::getConservativeRasterizationEnabled |
( |
| ) |
const |
|
pure virtual |
- Returns
- If conservative rasterization is enabled (true) or not (false).
◆ setFillMode()
virtual void nkGraphics::RasterState::setFillMode |
( |
FILL_MODE |
value | ) |
|
|
pure virtual |
Sets the fill mode when rasterizing.
- Parameters
-
◆ setCullMode()
virtual void nkGraphics::RasterState::setCullMode |
( |
CULL_MODE |
value | ) |
|
|
pure virtual |
Sets the cull mode when rasterizing.
- Parameters
-
◆ setFrontCounterClockwise()
virtual void nkGraphics::RasterState::setFrontCounterClockwise |
( |
bool |
value | ) |
|
|
pure virtual |
Sets whether the front of primitives should be chosen according to their points being declared counter clockwise or not.
- Parameters
-
value | Whether the front is counter clockwise (true) or not (false). |
◆ setDepthBias()
virtual void nkGraphics::RasterState::setDepthBias |
( |
int |
value | ) |
|
|
pure virtual |
Sets the depth bias used when rasterizing.
- Parameters
-
◆ setDepthBiasClamp()
virtual void nkGraphics::RasterState::setDepthBiasClamp |
( |
float |
value | ) |
|
|
pure virtual |
Sets the bias clamp to use.
- Parameters
-
◆ setSlopeScaledDepthBias()
virtual void nkGraphics::RasterState::setSlopeScaledDepthBias |
( |
float |
value | ) |
|
|
pure virtual |
Sets the slope scaled depth bias to use.
- Parameters
-
◆ setDepthClipEnabled()
virtual void nkGraphics::RasterState::setDepthClipEnabled |
( |
bool |
value | ) |
|
|
pure virtual |
Sets whether the depth clipping is enabled or not.
- Parameters
-
value | If the clipping should be enabled (true) or not (false). |
◆ setScissorEnabled()
virtual void nkGraphics::RasterState::setScissorEnabled |
( |
bool |
value | ) |
|
|
pure virtual |
Sets whether the scissor test should be enabled or not.
- Parameters
-
value | If the test should be enabled (true) or not (false). |
◆ setMultiSampleEnabled()
virtual void nkGraphics::RasterState::setMultiSampleEnabled |
( |
bool |
value | ) |
|
|
pure virtual |
Sets whether multi sampling is enabled.
- Parameters
-
value | If multi sampling is enabled (true) or not (false). |
◆ setAntiAliasedLineEnabled()
virtual void nkGraphics::RasterState::setAntiAliasedLineEnabled |
( |
bool |
value | ) |
|
|
pure virtual |
Sets whether the lines should be anti aliased.
- Parameters
-
value | If anti aliasing of lines is enabled (true) or not (false). |
◆ setForcedSampleCount()
virtual void nkGraphics::RasterState::setForcedSampleCount |
( |
unsigned int |
value | ) |
|
|
pure virtual |
Sets the forced sample count used.
- Parameters
-
◆ setConservativeRasterizationEnabled()
virtual void nkGraphics::RasterState::setConservativeRasterizationEnabled |
( |
bool |
value | ) |
|
|
pure virtual |
Sets whether conservative rasterization is enabled or not.
- Parameters
-
value | If the option is enabled (true) or not (false). |
◆ resetToDefault()
virtual void nkGraphics::RasterState::resetToDefault |
( |
| ) |
|
|
pure virtual |
Resets the state to its default.
◆ exportClassToTree()
virtual void nkGraphics::RasterState::exportClassToTree |
( |
nkExport::Node * |
rootNode | ) |
|
|
overridevirtual |
Exports an item into a tree describing its structure and its data.
- Parameters
-
rootNode | The node into which the object has to write its related information. |
Implements nkExport::Exportable.
◆ importClassFromTree()
virtual void nkGraphics::RasterState::importClassFromTree |
( |
nkExport::Node * |
rootNode | ) |
|
|
overridevirtual |
Imports information from a tree which is supposed to describe its structure and data.
- Parameters
-
rootNode | The root node of the tree holding the information. |
Implements nkExport::Exportable.
◆ create()
Creates a standalone resource, linking it to a system, but no manager. This method can be used to allocate a resource and manually manage its lifetime.
- Parameters
-
system | The system to create the resource into. If left to nullptr, then the Singleton instance will be used. |
- Returns
- The created resource instance.
The documentation for this class was generated from the following file: