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

Function zGameScreenTransitionBegin

src/SB/Game/zGame.cpp:873–899  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

871}
872
873void zGameScreenTransitionBegin()
874{
875 gGameWhereAmI = eGameWhere_TransitionBegin;
876 zGameSetOstrich(eGameOstrich_Loading);
877 globals.dontShowPadMessageDuringLoadingOrCutScene = '\0';
878 sGameScreenTransCam = iCameraCreate(640, 480, 0);
879 if (sGameScreenTransCam != NULL)
880 {
881 DirectionalLight = RpLightCreate(1);
882 if (DirectionalLight != NULL)
883 {
884 RwRGBAReal col;
885 col.red = col.green = col.blue = 1.0f;
886 col.alpha = 0.0f;
887 RpLightSetColor(DirectionalLight, &col);
888 RwFrame* frame = RwFrameCreate();
889 _rwObjectHasFrameSetFrame(DirectionalLight, frame);
890 RwBBox box;
891 box.sup.z = box.sup.y = box.sup.x = 10000.0f;
892 box.inf.z = box.inf.y = box.inf.x = -10000.0f;
893 World = RpWorldCreate(&box);
894 RpWorldAddCamera(World, sGameScreenTransCam);
895 gGameWhereAmI = eGameWhere_TransitionSnapShot;
896 zGameTakeSnapShot(sGameScreenTransCam);
897 }
898 }
899}
900
901void zGameScreenTransitionUpdate(F32 percentComplete, char* msg)
902{

Callers 1

zSceneInitFunction · 0.70

Calls 3

zGameSetOstrichFunction · 0.85
zGameTakeSnapShotFunction · 0.85
iCameraCreateFunction · 0.50

Tested by

no test coverage detected