From e6f0c5e8a75e486f642fa9d3be4afa839bc50c3f Mon Sep 17 00:00:00 2001 From: Thanasis Antoniou Date: Mon, 27 May 2019 00:11:12 +0300 Subject: BLADERUNNER: Expose info for view in debugger list obj --- engines/bladerunner/debugger.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/engines/bladerunner/debugger.cpp b/engines/bladerunner/debugger.cpp index 9cfb5d7eb1..593ecff9b3 100644 --- a/engines/bladerunner/debugger.cpp +++ b/engines/bladerunner/debugger.cpp @@ -1923,6 +1923,14 @@ bool Debugger::cmdList(int argc, const char **argv) { invalidSyntax = true; } } else if (arg == "obj") { + debugPrintf("View info\nCamera position: (%5.2f, %5.2f, %5.2f), Viewport position: (%5.2f, %5.2f, %5.2f), FoVx: %2.2f\n", + _vm->_view->_cameraPosition.x, + _vm->_view->_cameraPosition.y, + _vm->_view->_cameraPosition.z, + _vm->_view->_viewportPosition.x, + _vm->_view->_viewportPosition.y, + _vm->_view->_viewportPosition.z, + _vm->_view->_fovX); debugPrintf("Listing scene objects: \n"); int count = 0; for (int i = 0; i < _vm->_sceneObjects->_count; i++) { -- cgit v1.2.3