379 glMatrixMode (GL_PROJECTION); |
379 glMatrixMode (GL_PROJECTION); |
380 glPushMatrix(); |
380 glPushMatrix(); |
381 |
381 |
382 glLoadIdentity(); |
382 glLoadIdentity(); |
383 const QSizeF& virtualSize = currentCamera().virtualSize(); |
383 const QSizeF& virtualSize = currentCamera().virtualSize(); |
384 glOrtho(-virtualSize.width(), virtualSize.width(), -virtualSize.height(), virtualSize.height(), -100.0f, 100.0f); |
384 glOrtho(-virtualSize.width(), virtualSize.width(), -virtualSize.height(), virtualSize.height(), -1000.0f, 1000.0f); |
385 glTranslatef(panning (X), panning (Y), 0.0f); |
385 glTranslatef(panning (X), panning (Y), 0.0f); |
386 glMultMatrixf(currentCamera().transformationMatrix()); |
386 glMultMatrixf(currentCamera().transformationMatrix()); |
387 glMultMatrixf(ldrawToGLAdapterMatrix); |
387 glMultMatrixf(ldrawToGLAdapterMatrix); |
|
388 drawFixedCameraBackdrop(); |
388 } |
389 } |
389 else |
390 else |
390 { |
391 { |
391 glMatrixMode(GL_MODELVIEW); |
392 glMatrixMode(GL_MODELVIEW); |
392 glPushMatrix(); |
393 glPushMatrix(); |