nn::gr::CTR::Texture::UnitBase Class

Syntax

class UnitBase

Description

Class for making common settings for each texture unit.

Member Variables

physicalAddr Sets the texture's physical address. Type is uptr.
width Sets the texture width. Type is u16.
height Sets the texture height. Type is u16.
format Sets the texture format. Type is PicaDataTextureFormat.
wrapT Sets the texture coordinates. Type is PicaDataTextureWrap. Initial value is PICA_DATA_TEXTURE_WRAP_REPEAT.
wrapS Sets the texture coordinates. Type is PicaDataTextureWrap. Initial value is PICA_DATA_TEXTURE_WRAP_REPEAT.
magFilter Sets the texture magnification filter. Type is PicaDataTextureMagFilter. The initial value is PICA_DATA_TEXTURE_MAG_FILTER_NEAREST.
minFilter Sets the texture minimization filter. Type is PicaDataTextureMinFilter. The initial value is PICA_DATA_TEXTURE_MIN_FILTER_NEAREST.
lodBias Sets the LOD bias. Type is f32. The initial value is 0.f. Set in the range [-16.f, 16.f]. This is converted into a 13-bit fixed-point number (fraction8) when commands are generated. This is ignored when mipmaps are not enabled.
minLodLevel Sets the minimum LOD level. Type is u8. The initial value is 0. Specify a value of 0 or more. This is ignored when mipmaps are not enabled.
maxLodLevel Sets the maximum LOD level. Type is u8. The initial value is 0. Specify a value that is one less than the number of mipmap levels loaded. This is ignored when mipmaps are not enabled.
borderColorR The red component of the border color. Type is u8. The initial value is 0.
borderColorG The green component of the border color. Type is u8. The initial value is 0.
borderColorB The blue component of the border color. Type is u8. The initial value is 0.
borderColorA The alpha component of the border color. Type is u8. The initial value is 0.

Member Functions

protected IsEnableMipMap Determines whether MipMap is enabled.
protected UnitBase Sets the initial value.

Revision History

2010/09/15
Initial version.

CONFIDENTIAL