Commit fadd8ab2 authored by Jan Möbius's avatar Jan Möbius
Browse files

Removed global state variables aspect_ and fovy_. They are now computed from...

Removed global state variables aspect_ and fovy_. They are now computed from current projection matrix

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7220 383ad7c9-94d9-4d36-a494-682f7c89f535
parent decddac6
......@@ -338,10 +338,8 @@ void GLState::frustum( double _left, double _right,
void GLState::perspective( double _fovY, double _aspect,
double _n, double _f )
{
fovy_ = _fovY;
near_plane_ = _n;
far_plane_ = _f;
aspect_ = _aspect;
projection_.perspective(_fovY, _aspect, _n, _f);
inverse_projection_.inverse_perspective(_fovY, _aspect, _n, _f);
......
......@@ -475,8 +475,7 @@ private: //--------------------------------------------------------------------
int glwidth_, glheight_;
// projection
double near_plane_, far_plane_, fovy_;
double aspect_;
double near_plane_, far_plane_;
// colors & materials
Vec4f clear_color_,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment