diff options
author | Thanasis Antoniou | 2019-05-27 00:11:12 +0300 |
---|---|---|
committer | Thanasis Antoniou | 2019-05-27 00:11:12 +0300 |
commit | e6f0c5e8a75e486f642fa9d3be4afa839bc50c3f (patch) | |
tree | 755ca92473765bbd1de7b7d6c45fe7c61178f616 | |
parent | 605e21953d161ca043bedebb56994676f4902fe3 (diff) | |
download | scummvm-rg350-e6f0c5e8a75e486f642fa9d3be4afa839bc50c3f.tar.gz scummvm-rg350-e6f0c5e8a75e486f642fa9d3be4afa839bc50c3f.tar.bz2 scummvm-rg350-e6f0c5e8a75e486f642fa9d3be4afa839bc50c3f.zip |
BLADERUNNER: Expose info for view in debugger list obj
-rw-r--r-- | engines/bladerunner/debugger.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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++) { |