Commit 94013d10 authored by Mike Kremer's avatar Mike Kremer
Browse files

Removed setAspectRatio method. Fixed setting sizes.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11434 383ad7c9-94d9-4d36-a494-682f7c89f535
parent d5ee727f
......@@ -63,11 +63,8 @@ public:
/// Set projection Matrix ( used to calculate frustum ... )
void setProjection(ACG::GLMatrixd _projection) { projection_ = _projection; };
/// Set viewport size ( This will be used to compute the aspect ration )
void setSize(int _w, int _h) { aspectRatio_ = (double)width_ / (double)height_; }
/// Set aspect ration ( width = a * height ; x = a * y )
void setAspectRation(double _aspect) { aspectRatio_ = _aspect; }
/// Set viewport size ( This will be used to compute the aspect ratio )
void setSize(int _w, int _h) { width_ = _w; height_ = _h; aspectRatio_ = (double)width_ / (double)height_; }
/// Return encoded view string
void setEncodedView(QString _encodedView) { encodedView_ = _encodedView; };
......
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