nn::gr::CTR::RenderState::Blend Class

Syntax

class Blend

Description

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.

Member Variables

isEnable bool Setting to enable/disable blending. Type is bool. Initial value is false (disabled). You can only enable either logical operations or blending.
eqRgb PicaDataBlendEquation Sets the blend method for RGB components. Type is PicaDataBlendEquation.    Initial value is PICA_DATA_BLEND_EQUATION_ADD.
eqAlpha PicaDataBlendEquation Sets the blend function for the alpha component. Type is PicaDataBlendEquation. Initial value is PICA_DATA_BLEND_EQUATION_ADD.
srcRgb PicaDataBlendFunc Sets the blend RGB component source. Type is PicaDataBlendFunc. Initial value is PICA_DATA_BLEND_FUNC_SRC_ALPHA.
srcAlpha PicaDataBlendFunc Sets the blend alpha component source. Type is PicaDataBlendFunc. Initial value is PICA_DATA_BLEND_FUNC_SRC_ALPHA.
dstRgb PicaDataBlendFunc Sets the blend RGB component destination. Type is PicaDataBlendFunc. Initial value is PICA_DATA_BLEND_FUNC_ONE_MINUS_SRC_ALPHA.
dstAlpha PicaDataBlendFunc Sets the blend ALPHA component destination. Type is PicaDataBlendFunc.     Initial value is PICA_DATA_BLEND_FUNC_ONE_MINUS_SRC_ALPHA.
colorR u8 Sets the red component to use for the blend constant color. Type is u8. Specify a value in the range [0, 255]. The initial value is 255.
colorG u8 Sets the green component to use for the blend constant color. Type is u8. Specify a value in the range [0, 255]. The initial value is 255.
colorB u8 Sets the blue component to use for the blend constant color. Type is u8. Specify a value in the range [0, 255]. The initial value is 255.
colorA u8 Sets the alpha component to use for the blend constant color. Type is u8. Specify a value in the range [0, 255]. The initial value is 255.

Member Functions

Blend Initializes the blend settings to the initial values.
MakeCommand Generates a rendering command based on information already set.
S MakeDisableCommand Disables blending.

Revision History

2010/09/15
Initial version.

CONFIDENTIAL