mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-10 10:22:20 +00:00
[CHG] GRRLIB_Init forced to specific pixelfmt, copyclear alpha to 0, GX_PokeAlphaRead to none. (all this for real alphaed compositing)
This commit is contained in:
parent
57524607cf
commit
d747469c4d
1 changed files with 3 additions and 3 deletions
|
@ -96,7 +96,7 @@ int GRRLIB_Init (void) {
|
||||||
GX_Init(gp_fifo, DEFAULT_FIFO_SIZE);
|
GX_Init(gp_fifo, DEFAULT_FIFO_SIZE);
|
||||||
|
|
||||||
// Clear the background to opaque black and clears the z-buffer
|
// Clear the background to opaque black and clears the z-buffer
|
||||||
GX_SetCopyClear((GXColor){ 0, 0, 0, 0xff }, GX_MAX_Z24);
|
GX_SetCopyClear((GXColor){ 0, 0, 0, 0 }, GX_MAX_Z24);
|
||||||
|
|
||||||
// Other GX setup
|
// Other GX setup
|
||||||
yscale = GX_GetYScaleFactor(rmode->efbHeight, rmode->xfbHeight);
|
yscale = GX_GetYScaleFactor(rmode->efbHeight, rmode->xfbHeight);
|
||||||
|
@ -106,8 +106,8 @@ int GRRLIB_Init (void) {
|
||||||
GX_SetCopyFilter(rmode->aa, rmode->sample_pattern, GX_TRUE, rmode->vfilter);
|
GX_SetCopyFilter(rmode->aa, rmode->sample_pattern, GX_TRUE, rmode->vfilter);
|
||||||
GX_SetFieldMode(rmode->field_rendering, ((rmode->viHeight == 2 * rmode->xfbHeight) ? GX_ENABLE : GX_DISABLE));
|
GX_SetFieldMode(rmode->field_rendering, ((rmode->viHeight == 2 * rmode->xfbHeight) ? GX_ENABLE : GX_DISABLE));
|
||||||
|
|
||||||
if (rmode->aa) GX_SetPixelFmt(GX_PF_RGB565_Z16, GX_ZC_LINEAR) ; // Set 16 bit RGB565
|
GX_SetPixelFmt(GX_PF_RGBA6_Z24,GX_ZC_LINEAR);
|
||||||
else GX_SetPixelFmt(GX_PF_RGB8_Z24 , GX_ZC_LINEAR) ; // Set 24 bit Z24
|
GX_PokeAlphaRead(GX_READ_NONE);
|
||||||
|
|
||||||
GX_SetDispCopyGamma(GX_GM_1_0);
|
GX_SetDispCopyGamma(GX_GM_1_0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue