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

Method Setup

src/SB/Game/zNPCTypeVillager.cpp:2151–2170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2149RpAtomic* NPC_BubBud_RenderCB(RpAtomic* atomic);
2150
2151void zNPCBubbleBuddy::Setup()
2152{
2153 zNPCCommon::Setup();
2154 if (!this->rast_fresnel && !this->rast_enviro)
2155 {
2156 char* nam_fresTxtr = "gloss_edge";
2157 this->aid_fresnelTxtr = xStrHash(nam_fresTxtr);
2158 this->txtr_fresnel = NPCC_FindRWTexture(this->aid_fresnelTxtr);
2159 this->rast_fresnel = NPCC_FindRWRaster(this->txtr_fresnel);
2160 this->aid_enviroTxtr = xStrHash(nam_fresTxtr);
2161 this->txtr_enviro = NPCC_FindRWTexture(this->aid_enviroTxtr);
2162 this->rast_enviro = NPCC_FindRWRaster(this->txtr_enviro);
2163 }
2164 this->model->PipeFlags = (this->model->PipeFlags & 0xffffffcf) | 0x10;
2165 this->model->Data->renderCallBack = NPC_BubBud_RenderCB;
2166 if (this->model->Data->renderCallBack == NULL)
2167 {
2168 this->model->Data->renderCallBack = AtomicDefaultRenderCallBack;
2169 }
2170}
2171
2172void zNPCBubbleBuddy::Reset()
2173{

Callers

nothing calls this directly

Calls 4

NPCC_FindRWTextureFunction · 0.85
NPCC_FindRWRasterFunction · 0.85
SetupFunction · 0.50
xStrHashFunction · 0.50

Tested by

no test coverage detected