Cambiato il nome del costruttore era rimasto quello vecchio... e tolti alcune righe di codice commentate

This commit is contained in:
Paolo Cignoni 2004-12-16 11:08:35 +00:00
parent 02aee67598
commit 3aa3da0d46
1 changed files with 7 additions and 1 deletions

View File

@ -23,6 +23,9 @@
/****************************************************************************
History
$Log: not supported by cvs2svn $
Revision 1.4 2004/12/15 18:45:06 tommyfranken
*** empty log message ***
Revision 1.3 2004/11/03 09:38:21 ganovelli
added SetSubView, some comment and put the class back(!)
@ -116,7 +119,10 @@ static void TransformGL(const vcg::Camera<S> & camera,typename S farDist = -1 )
S sx,dx,bt,tp,nr,fr;
GetFrustum(camera,sx,dx,bt,tp,nr,fr);
assert(glGetError()==0);
glFrustum(sx,dx,bt,tp,nr,(farDist == -1)?fr:farDist);
if(!IsOrtho())
glFrustum(sx,dx,bt,tp,nr,(farDist == -1)?fr:farDist);
else glOrtho(sx*viewportM,dx*viewportM,bt*viewportM,tp*viewportM,nr,(farDist == -1)?fr:farDist);
assert(glGetError()==0);
};
//=======