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

Method OnViewCenterOnCube

editor/MainFrm.cpp:2221–2230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2219
2220void CMainFrame::OnViewMoveCameraToSelectedRoom() { SetViewerFromRoomFace(Curroomp, Curface, 1); }
2221
2222void CMainFrame::OnViewCenterOnCube() {
2223 vector pos;
2224
2225 if (Editor_view_mode == VM_ROOM)
2226 ComputeRoomCenter(&pos, &Rooms[D3EditState.current_room]);
2227 else
2228 ComputeRoomCenter(&pos, Curroomp);
2229
2230 SetWireframeView(&pos);
2231}
2232
2233void CMainFrame::OnViewCenterOnObject() { SetWireframeView(&Objects[Cur_object_index].pos); }

Callers

nothing calls this directly

Calls 2

ComputeRoomCenterFunction · 0.85
SetWireframeViewFunction · 0.85

Tested by

no test coverage detected