MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / iDrawSetFBMSK

Function iDrawSetFBMSK

src/SB/Core/gc/iDraw.cpp:6–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <stddef.h>
5
6void iDrawSetFBMSK(U32 abgr)
7{
8 size_t tmp, hi;
9
10 hi = abgr >> 24;
11
12 if (hi == 0)
13 {
14 GXSetAlphaUpdate(GX_TRUE);
15 }
16 else if (hi == 255)
17 {
18 GXSetAlphaUpdate(GX_FALSE);
19 }
20
21 tmp = abgr & 0x00FFFFFF;
22
23 if (tmp == 0)
24 {
25 GXSetColorUpdate(GX_TRUE);
26 }
27 else
28 {
29 GXSetColorUpdate(GX_FALSE);
30 }
31}
32
33void iDrawBegin()
34{

Callers 6

RenderExtraMethod · 0.50
render_ghostFunction · 0.50
custom_bubble_renderFunction · 0.50
xFXShinyRenderFunction · 0.50
xFXBubbleRenderFunction · 0.50

Calls 2

GXSetAlphaUpdateFunction · 0.85
GXSetColorUpdateFunction · 0.85

Tested by

no test coverage detected