From fce8b02767f956491cda03b4165483782277daaf Mon Sep 17 00:00:00 2001 From: ganovelli Date: Fri, 13 Jan 2017 13:34:55 +0100 Subject: [PATCH] Revert "const missing" This reverts commit 825d90157cdc876cd67de39cd1ee1c9a46bb28bf. --- vcg/math/camera.h | 4 ++-- wrap/gl/camera.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vcg/math/camera.h b/vcg/math/camera.h index 4cbe63d6..e4502197 100644 --- a/vcg/math/camera.h +++ b/vcg/math/camera.h @@ -229,7 +229,7 @@ public: vcg::Matrix44 GetMatrix(S nearVal, S farVal); /// returns the frustum - inline void GetFrustum (S & sx, S & dx, S & bt, S & tp, S & nr) const; + inline void GetFrustum(S & sx, S & dx, S & bt, S & tp, S & nr); //--- Space transformation methods @@ -549,7 +549,7 @@ void Camera::SetIsometric(S sx, S dx, S bt, S tp, S Focal, vcg::Point2 V /// returns the frustum template -void Camera:: GetFrustum ( S & sx, S & dx, S & bt, S & tp, S & nr)const +void Camera:: GetFrustum( S & sx, S & dx, S & bt, S & tp, S & nr) { dx = CenterPx.X()* PixelSizeMm.X(); //scaled center sx = -( (S)ViewportPx.X() - CenterPx.X() ) * PixelSizeMm.X(); diff --git a/wrap/gl/camera.h b/wrap/gl/camera.h index 6802385e..a72d15d4 100644 --- a/wrap/gl/camera.h +++ b/wrap/gl/camera.h @@ -139,7 +139,7 @@ static void SetGLIsometricProj(float x1, float x2, float y1, float y2, float z1, } /// get OpenGL-like frustum from a vcg camera (intrinsics) -static void GetFrustum(vcg::Camera & intrinsics, S & sx,S & dx,S & bt,S & tp,S & f) const +static void GetFrustum(vcg::Camera & intrinsics, S & sx,S & dx,S & bt,S & tp,S & f) { intrinsics.GetFrustum(sx,dx,bt,tp,f); }