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

Method UpdateOrientation

editor/ViewerPropDlg.cpp:261–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261void CViewerPropDlg::UpdateOrientation() {
262 char buf[10];
263 angvec angs;
264
265 vm_ExtractAnglesFromMatrix(&angs, &Viewer_object->orient);
266
267 sprintf(buf, "%d", (int)angs.p * 360 / 65536);
268 m_PitchEdit.SetWindowText(buf);
269
270 sprintf(buf, "%d", (int)angs.h * 360 / 65536);
271 m_HeadingEdit.SetWindowText(buf);
272
273 sprintf(buf, "%d", (int)angs.b * 360 / 65536);
274 m_BankEdit.SetWindowText(buf);
275}
276
277void CViewerPropDlg::UpdatePosition() {
278 char buf[10];

Callers 1

OnIdleMethod · 0.80

Calls 1

Tested by

no test coverage detected