diff options
Diffstat (limited to 'engines/bladerunner/scene.cpp')
-rw-r--r-- | engines/bladerunner/scene.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/bladerunner/scene.cpp b/engines/bladerunner/scene.cpp index 2f357e2860..8a5870d64f 100644 --- a/engines/bladerunner/scene.cpp +++ b/engines/bladerunner/scene.cpp @@ -101,13 +101,19 @@ bool Scene::open(int setId, int sceneId, bool isLoadingGame) { return true; } -int Scene::advanceFrame(Graphics::Surface &surface) { +int Scene::advanceFrame(Graphics::Surface &surface, uint16 *&zBuffer) { int frame = _vqaPlayer.update(); if (frame >= 0) { surface.copyFrom(*_vqaPlayer.getSurface()); + memcpy(zBuffer, _vqaPlayer.getZBuffer(), 640*480*2); _view = _vqaPlayer.getView(); } return frame; } +void Scene::setActorStart(Vector3 position, int facing) { + _actorStartPosition = position; + _actorStartFacing = facing; +} + } // End of namespace BladeRunner |