MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / InitCameraViews

Function InitCameraViews

Descent3/GameLoop.cpp:1104–1113  ·  view source on GitHub ↗

Turn off all camera views If total reset is true, set all views to none, otherwise kill object view but keep rear views.

Source from the content-addressed store, hash-verified

1102// Turn off all camera views
1103// If total reset is true, set all views to none, otherwise kill object view but keep rear views.
1104void InitCameraViews(bool total_reset) {
1105 for (int i = 0; i < NUM_CAMERA_VIEWS; i++) {
1106 if (total_reset || (Camera_view_mode[i] != CV_REARVIEW)) {
1107 Camera_view_mode[i] = CV_NONE;
1108 } else { // is rear view, so keep it
1109 Camera_view_mode[i] = CV_REARVIEW;
1110 CreateSmallView(i, Player_object->handle, SVF_REARVIEW, 0.0, D3_DEFAULT_ZOOM, -1, TXT_VIEW_REAR);
1111 }
1112 }
1113}
1114
1115void RestoreCameraRearviews() {
1116 if (Camera_view_mode[0] != CV_REARVIEW) {

Callers 3

StartNewGameFunction · 0.85
StartLevelFunction · 0.85
LGSMissionFunction · 0.85

Calls 1

CreateSmallViewFunction · 0.85

Tested by

no test coverage detected