#include <nnsys/g2d/g2d_OamSoftwareSpriteDraw.h>
void NNS_G2dSetOamSoftEmuSpriteParamCache
(
const GXOamAttr* pOam,
const NNSG2dImageAttr* pTexImageAttr,
u32 texBaseAddr,
u32 pltBaseAddr
);
| pOam | [IN] OAM attribute |
| pTexImageAttr | [IN] Texture attribute |
| texBaseAddr | [IN] Texture base address |
| pltBaseAddr | [IN] Palette base address |
None.
Sets the parameter cache used for software sprite drawing.
Configures the cache of the parameter that is used in software sprite rendering using the NNS_G2dDrawOneOam3DDirectUsingParamCacheFast() function.
The parameter in this case is the UV parameter, so when writing sprites that reference identical textures in large volume, an efficient rendering process can be performed by calculating and configuring the UV values all at once.
NNS_G2dDrawOneOam3DDirectUsingParamCache() Rendering Process = UV Parameter Setting x 1 + Render x N Normal Rendering Process = ( UV Parameter Setting + Render) x N
NNS_G2dDrawOneOam3DDirectUsingParamCacheFast
11/10/2004 Initial version.
CONFIDENTIAL