nn::y2r::CTR::SetAlpha Function

Syntax

void SetAlpha(
     s16 alpha
);

Arguments

Name Description
in alpha Specifies the alpha value.

Return Values

None.

Description

Sets the alpha value for a 32-bit RGB or RGB555 output format.

In the case of 32-bit RGB, the lower 8 bits of the configured alpha value are the valid bits. For that reason, values outside the limit of 0x00ff are ignored.

In the case of RGB555, the valid bit is the eighth bit of the configured alpha value. For that reason, you must provide a value of 0x0080 as opposed to 0x0001.

Revision History

2010/05/13
Added description of valid alpha values.
2010/01/07
Initial version.

CONFIDENTIAL