2D: mosaic

sprites might be mosaiced wrong, esp. rotscaled ones. blrgdfgdf
This commit is contained in:
StapleButter
2017-07-23 18:36:00 +02:00
parent e6f5507c9e
commit 82e42c5be7
2 changed files with 333 additions and 72 deletions

View File

@ -93,6 +93,8 @@ private:
u8 BGMosaicSize[2];
u8 OBJMosaicSize[2];
u8 BGMosaicY, BGMosaicYMax;
u8 OBJMosaicY, OBJMosaicYMax;
u16 BlendCnt;
u16 BlendAlpha;
@ -123,8 +125,8 @@ private:
void InterleaveSprites(u32* buf, u32 prio, u32* dst);
void DrawSprites(u32 line, u32* dst);
void DrawSpritesWindow(u32 line, u8* dst);
template<bool window> void DrawSprite_Rotscale(u16* attrib, u16* rotparams, u32 boundwidth, u32 boundheight, u32 width, u32 height, s32 xpos, u32 ypos, u32* dst);
template<bool window> void DrawSprite_Normal(u16* attrib, u32 width, s32 xpos, u32 ypos, u32* dst);
template<bool window> void DrawSprite_Rotscale(u16* attrib, u16* rotparams, u32 boundwidth, u32 boundheight, u32 width, u32 height, s32 xpos, s32 ypos, u32* dst);
template<bool window> void DrawSprite_Normal(u16* attrib, u32 width, s32 xpos, s32 ypos, u32* dst);
void DoCapture(u32 line, u32 width, u32* src);