STARK: Add incomplete support for scrolling the scene
This commit is contained in:
parent
d9217d1fe9
commit
00f63c0ce0
18 changed files with 146 additions and 32 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue