3d charts: Zoom the camera towards a bar.
Change-Id: I3fa644924ca176dfd853b527e0c42dadaf9fa091
This commit is contained in:
@@ -89,6 +89,10 @@ class Camera : public Renderable3DObject
|
|||||||
public:
|
public:
|
||||||
Camera(OpenGL3DRenderer* pRenderer);
|
Camera(OpenGL3DRenderer* pRenderer);
|
||||||
virtual void render() SAL_OVERRIDE;
|
virtual void render() SAL_OVERRIDE;
|
||||||
|
|
||||||
|
/// Zooms the camera towards the bar with Unique Id nId.
|
||||||
|
void zoom(sal_uInt32 nId);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
glm::vec3 maPos;
|
glm::vec3 maPos;
|
||||||
glm::vec3 maUp;
|
glm::vec3 maUp;
|
||||||
|
@@ -111,6 +111,10 @@ void Camera::render()
|
|||||||
mpRenderer->SetCameraInfo(maPos, maDirection, maUp, true);
|
mpRenderer->SetCameraInfo(maPos, maDirection, maUp, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Camera::zoom(sal_uInt32 /*nId*/)
|
||||||
|
{
|
||||||
|
// TODO here
|
||||||
|
}
|
||||||
|
|
||||||
namespace temporary {
|
namespace temporary {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user