| 171 | } |
| 172 | |
| 173 | void Window::updateMatrix() |
| 174 | { |
| 175 | const float sw = Renderer::getScreenWidth() / mZoomFactor; |
| 176 | const float sh = Renderer::getScreenHeight() / mZoomFactor; |
| 177 | |
| 178 | mMatrix = Eigen::Affine3f::Identity(); |
| 179 | mMatrix = mMatrix.scale(Eigen::Vector3f(mZoomFactor, mZoomFactor, 1)); |
| 180 | mMatrix = mMatrix.translate(Eigen::Vector3f(sw / 2 - mCenterPoint.x(), sh / 2 - mCenterPoint.y(), 0)); |
| 181 | } |
| 182 | |
| 183 | void Window::setFadePercent(const float& perc) |
| 184 | { |
nothing calls this directly
no test coverage detected