allow obsolete OpenGL2 drawer to render with z-up axis.

This commit is contained in:
erwincoumans
2016-11-12 11:59:40 -08:00
parent 7577c6d893
commit 9bad64fed9
7 changed files with 33 additions and 25 deletions

View File

@@ -33,6 +33,7 @@ void SimpleOpenGL2Renderer::updateCamera(int upAxis)
float projection[16];
float view[16];
m_camera.setAspectRatio((float)m_width/(float)m_height);
m_camera.setCameraUpAxis(upAxis);
m_camera.update();
m_camera.getCameraProjectionMatrix(projection);
m_camera.getCameraViewMatrix(view);