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

Method render

src/SB/Game/zDiscoFloor.cpp:983–1006  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

981}
982
983void z_disco_floor::render(S32 group)
984{
985 tile_data* tile = tiles[group];
986 tile_data* end_tile = tile + tiles_size;
987
988 while (tile != end_tile)
989 {
990 if (!(tile->ent->flags & 0x1))
991 {
992 tile->culled = true;
993 }
994 else
995 {
996 tile->culled = (iModelSphereCull(&tile->sphere) != 0);
997
998 if (!tile->culled)
999 {
1000 render_model(tile->ent->model, tile->sphere);
1001 }
1002 }
1003
1004 tile++;
1005 }
1006}
1007
1008void z_disco_floor::effects_render(S32 group)
1009{

Callers 1

render_allMethod · 0.45

Calls 2

iModelSphereCullFunction · 0.85
render_modelFunction · 0.70

Tested by

no test coverage detected