nn::gr::CTR::ProcedureTexture Class

Syntax

class ProcedureTexture

Description

Class for generating procedural texture command.

Member Constants

S PROCTEX_LOOKUP_TABLE_ELEMENT_NUM The lookup table stores 128 data elements.
S PROCTEX_COLOR_LOOKUP_TABLE_ELEMENT_NUM The color lookup table stores 256 data elements.

Member Variables

rgbMap RGB mapping function mode. Type is PicaDataProcTexMap. Corresponds to the dmp_Texture[3].ptRgbMap uniform.
alphaMap Alpha mapping function mode. Type is PicaDataProcTexMap. Corresponds to the dmp_Texture[3].ptAlphaMap uniform.
alphaSeparate Specifies whether the mapping function should handle alpha values separately. Type is bool. Corresponds to the dmp_Texture[3].ptAlphaSeparate uniform.
clampU A texture's U-direction clamp mode. Type is PicaDataProcTexClamp. Corresponds to the dmp_Texture[3].ptClampU uniform.
clampV A texture's V-direction clamp mode. Type is PicaDataProcTexClamp. Corresponds to the dmp_Texture[3].ptClampV uniform.
shiftU A texture's U-direction shift calculation mode. Type is PicaDataProcTexShift. Corresponds to the dmp_Texture[3].ptShiftU uniform.
shiftV A texture's V-direction shift calculation mode. Type is PicaDataProcTexShift. Corresponds to the dmp_Texture[3].ptShiftV uniform.
minFilter A texture's MinFilter setting. Type is PicaDataProcTexFilter. Corresponds to the dmp_Texture[3].ptMinFilter uniform.
texBias The color lookup table's LOD bias. Type is f32, value range is [0.0, 6.0], default value is 0.5f. Corresponds to the dmp_Texture[3].texBias uniform.
texOffset Specifies the starting element of the partial array in use. Type is u8, value range is [0, 128], default value is 0. Corresponds to the dmp_Texture[3].ptTexOffset uniform.
texWidth Specifies the data width of the lookup table. Type is u8, value range is [0, 128], defalt value is 0. Corresponds to the dmp_Texture[3].ptTexWidth uniform.
isEnableNoise Specifies whether to enable noise. Type is bool, default value is false. Corresponds to the dmp_Texture[3].ptNoiseEnable uniform.
noiseUAmplitude Sets the amplitude of a texture's U-direction noise. Type is f32, default value is 0.0f. Corresponds to the dmp_Texture[3].ptNoiseU[2] uniform.
noiseVAmplitude Sets the amplitude of a texture's V-direction noise. Type is f32, default value is 0.0f. Corresponds to the dmp_Texture[3].ptNoiseV[2] uniform.
noiseUFrequency Sets the frequency of a texture's U-direction noise. Type is f32, default value is 0.0f. Corresponds to the dmp_Texture[3].ptNoiseU[0] uniform.
noiseVFrequency Sets the frequency of a texture's V-direction noise. Type is f32, default value is 0.0f. Corresponds to the dmp_Texture[3].ptNoiseV[0] uniform.
noiseUPhase Sets the phase of a texture's U-direction noise. Type is f32, default value is 0.0f. Corresponds to the dmp_Texture[3].ptNoiseU[1] uniform.
noiseVPhase Sets the phase of a texture's V-direction noise. Type is f32, default value is 0.0f. Corresponds to the dmp_Texture[3].ptNoiseV[1] uniform.

Member Functions

SetNoiseLookUpTable Sets the lookup table for the continuous noise function.
SetRgbMapLookUpTable Sets the lookup table for the RGB mapping function.
SetAlphaMapLookUpTable Sets the lookup table for the alpha mapping function.
SetRedLookUpTable Sets the color lookup table for the red component.
SetGreenLookUpTable Sets the color lookup table for the green component.
SetBlueLookUpTable Sets the color lookup table for the blue component.
SetAlphaLookUpTable Sets the color lookup table for the alpha component.
MakeAllCommand Generates all commands for configuring procedural texture registers.
MakeConfigCommand Generates all commands for configuring procedural textures. (Does not generate lookup table commands.)
MakeProcedureTextureModeCommand Generates just the commands for configuring procedural texture mode settings.
MakeTextureCommand Generates just the commands for configuring texture settings for a procedural texture.
MakeNoiseCommand Generates just the commands for configuring procedural texture noise settings.
MakeTableCommand Generates just the commands for configuring procedural texture lookup tables.
ProcedureTexture Constructor of class for generating procedural texture commands.
S MakeDummyCommand Generates dummy commands to register 0x80 required before updating procedural texture registers.

Revision History

2010/10/25
Initial version.

CONFIDENTIAL