3d charts: Zoom the camera towards a bar.

Change-Id: I3fa644924ca176dfd853b527e0c42dadaf9fa091
This commit is contained in:
Jan Holesovsky
2014-05-06 21:22:21 +02:00
parent d80490e938
commit 166c282e98
2 changed files with 8 additions and 0 deletions

View File

@@ -89,6 +89,10 @@ class Camera : public Renderable3DObject
public:
Camera(OpenGL3DRenderer* pRenderer);
virtual void render() SAL_OVERRIDE;
/// Zooms the camera towards the bar with Unique Id nId.
void zoom(sal_uInt32 nId);
private:
glm::vec3 maPos;
glm::vec3 maUp;

View File

@@ -111,6 +111,10 @@ void Camera::render()
mpRenderer->SetCameraInfo(maPos, maDirection, maUp, true);
}
void Camera::zoom(sal_uInt32 /*nId*/)
{
// TODO here
}
namespace temporary {