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

Function zSceneRenderPostFX

src/SB/Game/zScene.cpp:3099–3180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3097}
3098
3099static void zSceneRenderPostFX()
3100{
3101 zRenderState(SDRS_Glare);
3102
3103 xScrFXGlareRender(&globals.camera);
3104 xScrFXFullScreenGlareRender();
3105
3106 if (zGameModeGet() == eGameMode_Intro &&
3107 (zGameStateGet() == eIntroState_Sony || zGameStateGet() == eIntroState_Publisher))
3108 {
3109 render_mem_card_no_space(bytesNeeded, availOnDisk, neededFiles,
3110 zGameStateGet() == eIntroState_Sony);
3111 }
3112
3113 cruise_bubble::render_screen();
3114 oob_state::fx_render();
3115
3116 zRenderState(SDRS_Font);
3117 ztextbox::render_all();
3118 ztalkbox::render_all();
3119
3120 zRenderState(SDRS_Font);
3121 xDrawEnd();
3122 xDrawBegin();
3123
3124 RwCameraEndUpdate(globals.camera.lo_cam);
3125 RwCameraClear(globals.camera.lo_cam, NULL, rwCAMERACLEARZ);
3126 RwCameraBeginUpdate(globals.camera.lo_cam);
3127
3128 zUIRenderAll();
3129
3130 eGameMode mode = zGameModeGet();
3131
3132 if (mode != eGameMode_Game && mode != eGameMode_Stall)
3133 {
3134 RwRenderStateSet(rwRENDERSTATETEXTURERASTER, NULL);
3135 zSceneSpawnRandomBubbles();
3136
3137 if (mode == eGameMode_Pause || mode == eGameMode_Save)
3138 {
3139 zParPTankUpdate(sTimeElapsed);
3140 }
3141
3142 zParPTankRender();
3143 }
3144
3145 switch (mode)
3146 {
3147 case eGameMode_Load:
3148 case eGameMode_WorldMap:
3149 case eGameMode_ConceptArtGallery:
3150 {
3151 break;
3152 }
3153 default:
3154 {
3155 zRenderState(SDRS_HUD);
3156 zhud::render();

Callers 1

zSceneRenderFunction · 0.70

Calls 15

zRenderStateFunction · 0.85
zGameModeGetFunction · 0.85
zGameStateGetFunction · 0.85
xDrawEndFunction · 0.85
xDrawBeginFunction · 0.85
xParMgrRenderFunction · 0.85
zGameIsPausedFunction · 0.85
xTRCRenderFunction · 0.85
zUIRenderAllFunction · 0.70
zSceneSpawnRandomBubblesFunction · 0.70
zParPTankUpdateFunction · 0.70
zParPTankRenderFunction · 0.70

Tested by

no test coverage detected