diff options
author | Thomas Fach-Pedersen | 2017-03-28 17:50:04 +0200 |
---|---|---|
committer | Thomas Fach-Pedersen | 2017-03-28 17:50:11 +0200 |
commit | 5f552c9446ddf3f02ec99ff6902822d66d2cc955 (patch) | |
tree | b28610bf509c67109a042136873fd26b93d9fcf2 /engines/bladerunner/mouse.cpp | |
parent | 532828c143e0872525dadfe8b0ebe804f7071633 (diff) | |
download | scummvm-rg350-5f552c9446ddf3f02ec99ff6902822d66d2cc955.tar.gz scummvm-rg350-5f552c9446ddf3f02ec99ff6902822d66d2cc955.tar.bz2 scummvm-rg350-5f552c9446ddf3f02ec99ff6902822d66d2cc955.zip |
BLADERUNNER: Implement ZBuffer class
Diffstat (limited to 'engines/bladerunner/mouse.cpp')
-rw-r--r-- | engines/bladerunner/mouse.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/bladerunner/mouse.cpp b/engines/bladerunner/mouse.cpp index 675e20c0fd..be114dc1bb 100644 --- a/engines/bladerunner/mouse.cpp +++ b/engines/bladerunner/mouse.cpp @@ -26,6 +26,7 @@ #include "bladerunner/scene.h" #include "bladerunner/scene_objects.h" #include "bladerunner/shape.h" +#include "bladerunner/zbuffer.h" #include "graphics/surface.h" @@ -308,7 +309,7 @@ Vector3 Mouse::getXYZ(int x, int y) { float x3d = (2.0f / 640.0f * screenRight - 1.0f); float y3d = (2.0f / 480.0f * screenDown - 1.0f) * 0.75f; - uint16 zbufval = _vm->_zBuffer1[x + y * 640]; + uint16 zbufval = _vm->_zbuffer->getZValue(x, y); Vector3 pos; pos.z = zbufval / 25.5f; |