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

Function iParMgrRenderParSys_Flat

src/SB/Core/gc/iParMgr.cpp:104–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102void iParMgrRenderParSys_Static(void*, xParGroup*) { }
103
104void iParMgrRenderParSys_Flat(void* data, xParGroup* ps)
105{
106 xPar* idx = ps->m_root;
107 iRenderSetCameraViewMatrix(NULL);
108 RwTexture* texture = (RwTexture *)xSTFindAsset(*(U32 *)(*(S32 *)((S32)data + 0x10) + 0x10), NULL);
109 if (texture != NULL)
110 {
111 RwRaster* raster = texture->raster;
112 if (texture->raster != NULL)
113 {
114 RwRenderStateSet(rwRENDERSTATETEXTURERASTER, raster);
115 }
116 }
117 for (; idx != NULL; idx = idx->m_next)
118 {
119 iRenderPushFlat(idx, *(xParCmdTex **)((S32)ps + 0x20));
120 }
121 iRenderFlush();
122}

Callers

nothing calls this directly

Calls 4

iRenderPushFlatFunction · 0.85
iRenderFlushFunction · 0.85
xSTFindAssetFunction · 0.50

Tested by

no test coverage detected