From 1b08ca6ab1602c4bf54d35a278780e5c7f98ebc3 Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Thu, 16 Dec 2004 11:21:03 +0000 Subject: [PATCH] *** empty log message *** --- vcg/math/camera.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/vcg/math/camera.h b/vcg/math/camera.h index 82f11d10..f7b64786 100644 --- a/vcg/math/camera.h +++ b/vcg/math/camera.h @@ -23,6 +23,9 @@ /**************************************************************************** History $Log: not supported by cvs2svn $ +Revision 1.10 2004/12/15 18:45:50 tommyfranken +*** empty log message *** + <<<<<<< camera.h ======= Revision 1.8 2004/11/23 10:15:38 cignoni @@ -95,7 +98,16 @@ public: char _flags; bool IsOrtho(){ return (_flags & ORTHO_BIT);} - void SetOrtho(bool v ){ if(v) _flags |= ORTHO_BIT; else _flags &= ~ORTHO_BIT; }; + void SetOrtho(bool v, S dist ) + { + if(v) _flags |= ORTHO_BIT; + else + { + _flags &= ~ORTHO_BIT; + viewportM = ( ((viewport[0] * s[0]) * (viewport[1] * s[1])) / f ) * dist; + + } + }; char & UberFlags() {return _flags;} /// set the camera specifying the perspecive view