SetAlpha

nn::y2r::CTR::SetAlpha Function

Syntax

void SetAlpha(
     s16 alpha
);

Parameters

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.

When setting multiple items that are included in nn::y2r::CTR::PackageParameter (including those items that can be set by this function), we recommend using the nn::y2r::CTR::SetPackageParameter function instead.

Revision History

2011/03/07
Added that using the SetPackageParameter function is recommended.
2010/05/13
Added description of valid alpha values.
2010/01/07
Initial version.

CONFIDENTIAL