#include <nnsys/g2d/g2d_Oam.h>
void NNS_G2dApplyOamManagerToHWSprite
(
NNSG2dOamManagerInstance* pMan,
const NNSG2dImageAttr* pTexImageAttr,
u32 texBaseAddr,
u32 pltBaseAddr
);
pMan |
[IN] OAM manager entity |
pTexImageAttr |
[IN] Texture attribute |
texBaseAddr |
[IN] Texture base address |
pltBaseAddr |
[IN] Palette base address |
None.
Uses the 3D graphics engine to render the content of the internal buffer. Uses arguments to specify information used to set the texture data and palette data used by the 3D graphics engine. Camera settings must be completed in advance. Use NNS_G2dSetupSoftwareSpriteCamera
for the camera settings.
This function is the NNS_G2dApplyToHWSoftEmu
function under a new name. The previous function will remain to preserve compatibility.
Internally, this function uses the OAM software sprite-rendering module. According to specifications for the OAM software sprite rendering module, it does not distinguish between flip flags and affine conversion parameter number settings.
For this reason, if affine conversion parameter numbers are set to 8 or greater, they are mistaken for flip flags.
When using the OAM Manager's software sprite rendering feature, either restrict the number of affine conversion parameters to 7 or fewer, or use the OAM software sprite rendering module directly.
NNS_G2dApplyToHWSoftEmu
NNS_G2dApplyOamManagerToHW
NNS_G2dSetupSoftwareSpriteCamera
2007/11/26 Added Note.
2004/08/02 Renamed function.
2004/05/28 Initial version.
CONFIDENTIAL