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

Syntax

class UnitBase

Description

Class for making common settings for each texture unit.

Member Variables

physicalAddr uptr Sets the texture's physical address. Type is uptr.
width u16 Sets the texture width. Type is u16.
height u16 Sets the texture height. Type is u16.
format PicaDataTextureFormat Sets the texture format. Type is PicaDataTextureFormat.
wrapT PicaDataTextureWrap Sets the texture coordinates. Type is PicaDataTextureWrap. Initial value is PICA_DATA_TEXTURE_WRAP_REPEAT.
wrapS PicaDataTextureWrap Sets the texture coordinates. Type is PicaDataTextureWrap. Initial value is PICA_DATA_TEXTURE_WRAP_REPEAT.
magFilter PicaDataTextureMagFilter Sets the texture magnification filter. Type is PicaDataTextureMagFilter. The initial value is PICA_DATA_TEXTURE_MAG_FILTER_NEAREST.
minFilter PicaDataTextureMinFilter Sets the texture minimization filter. Type is PicaDataTextureMinFilter. The initial value is PICA_DATA_TEXTURE_MIN_FILTER_NEAREST.
lodBias f32  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 u8 Sets the minimum LOD level. Type is u8. Initial value is 0. Specify a value of 0 or more. This is ignored when mipmaps are not enabled.
maxLodLevel u8 Sets the maximum LOD level. Type is u8. 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 u8 The red component of the border color. Type is u8. The initial value is 0.
borderColorG u8 The green component of the border color. Type is u8. The initial value is 0.
borderColorB u8 The blue component of the border color. Type is u8. The initial value is 0.
borderColorA u8 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