STARK: Add incomplete support for scrolling the scene

This commit is contained in:
Bastien Bouclet 2015-02-08 09:17:51 +01:00
parent d9217d1fe9
commit 00f63c0ce0
18 changed files with 146 additions and 32 deletions

View file

@ -38,15 +38,19 @@ Scene::~Scene() {
}
void Scene::initCamera(const Math::Vector3d &position, const Math::Vector3d &lookDirection,
float fov, Common::Rect viewport, float nearClipPlane, float farClipPlane) {
float fov, Common::Rect viewSize, float nearClipPlane, float farClipPlane) {
_cameraPosition = position;
_cameraLookDirection = lookDirection;
_fov = fov;
_viewport = viewport;
_viewSize = viewSize;
_nearClipPlane = nearClipPlane;
_farClipPlane = farClipPlane;
}
void Scene::scrollCamera(const Common::Rect &viewport) {
_viewport = viewport;
}
void Scene::render(RenderEntryArray renderEntries) {
// setup cam
_gfx->setupPerspective(_fov, _nearClipPlane, _farClipPlane);