nn::gr::CTR::RenderState Class

Syntax

class RenderState

Description

Class for setting the render state.

Classes

nn::gr::CTR::RenderState::AlphaTest Class for setting the alpha test.
nn::gr::CTR::RenderState::Blend Class for configuring blend settings. You can generate rendering commands by setting each value and then calling the MakeCommand function. Because registers are shared, this cannot be used at the same time as logical operation settings.
nn::gr::CTR::RenderState::Culling Class for setting culling.
nn::gr::CTR::RenderState::DepthTest Class for setting the depth test.
nn::gr::CTR::RenderState::FBAccess Class for setting frame buffer access.
nn::gr::CTR::RenderState::LogicOp Class for setting logical operations. You can generate rendering commands by setting each value and then calling the MakeCommand function. Because registers are shared, this cannot be used at the same time as blend settings.
nn::gr::CTR::RenderState::ShadowMap Class for configuring shadow map settings. When shadow maps are enabled for the sharing of registers, you cannot use normal fragment operations and gas density information rendering at the same time.
nn::gr::CTR::RenderState::StencilTest Class for setting the stencil test.
nn::gr::CTR::RenderState::WBuffer Class for setting the w buffer.

Enumerated Types

ColorMask Definition for setting the color mask.

Member Variables

blend Blend Blend settings. The type is nn::gr::CTR::RenderState::Blend. You can only enable either logical operations or blending. Moreover, when either is enabled, you cannot use shadow map rendering and gas density information rendering at the same time.
logicOp LogicOp Logical operation settings. The type is nn::gr::CTR::RenderState::LogicOp. You can only enable either logical operations or blending. Moreover, when either is enabled, you cannot use shadow map rendering and gas density information rendering at the same time.
shadowMap ShadowMap The shadow map settings. The type is nn::gr::CTR::RenderState::ShadowMap. When this is enabled, you cannot use normal fragment operations and gas density information rendering at the same time.
alphaTest AlphaTest Alpha test settings. The type is nn::gr::CTR::RenderState::AlphaTest.
stencilTest StencilTest Stencil test settings. The type is nn::gr::CTR::RenderState::StencilTest.
colorMask ColorMask Color mask settings. The type is nn::gr::CTR::RenderState::ColorMask.
depthTest DepthTest Depth test settings. The type is nn::gr::CTR::RenderState::DepthTest.
cullingTest Culling Culling settings. The type is nn::gr::CTR::RenderState::Culling.
wBuffer WBuffer w buffer settings. The type is nn::gr::CTR::RenderState::WBuffer.
fbAccess FBAccess Frame buffer access settings. The type is nn::gr::CTR::RenderState::FBAccess.

Member Functions

RenderState Initializes render state settings to the default values.
MakeCommand Generates a command for setting all render states based on information already set.
S MakeDisableCommand Generates commands to invalidate the rendering state.

Revision History

2010/09/15
Initial version.

CONFIDENTIAL