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

Function iParMgrRenderParSys_QuadStreak

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

Source from the content-addressed store, hash-verified

75static void iRenderPushFlat(xPar* p, xParCmdTex* tex);
76
77void iParMgrRenderParSys_QuadStreak(void* data, xParGroup* ps)
78{
79 xPar* idx = ps->m_root;
80 iRenderSetCameraViewMatrix(NULL);
81 RwTexture* texture = (RwTexture *)xSTFindAsset(*(U32 *)(*(S32 *)((S32)data + 0x10) + 0x10), NULL);
82 if (texture != NULL)
83 {
84 RwRaster* raster = texture->raster;
85 if (texture->raster != NULL)
86 {
87 RwRenderStateSet(rwRENDERSTATETEXTURERASTER, raster);
88 }
89 }
90 else
91 {
92 RwRenderStateSet(rwRENDERSTATETEXTURERASTER, NULL);
93 }
94
95 for (; idx != NULL; idx = idx->m_next)
96 {
97 iRenderPushFlat(idx, *(xParCmdTex **)((S32)ps + 0x20));
98 }
99 iRenderFlush();
100}
101
102void iParMgrRenderParSys_Static(void*, xParGroup*) { }
103

Callers

nothing calls this directly

Calls 4

iRenderPushFlatFunction · 0.85
iRenderFlushFunction · 0.85
xSTFindAssetFunction · 0.50

Tested by

no test coverage detected