MCPcopy Create free account
hub / github.com/Aloshi/EmulationStation / updateMatrix

Method updateMatrix

src/Window.cpp:173–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173void 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
183void Window::setFadePercent(const float& perc)
184{

Callers

nothing calls this directly

Calls 2

getScreenWidthFunction · 0.70
getScreenHeightFunction · 0.70

Tested by

no test coverage detected