| 1789 | |
| 1790 | |
| 1791 | bool ModelToolApp::drawView() { |
| 1792 | glPushMatrix(); |
| 1793 | |
| 1794 | camera.execute(); |
| 1795 | /* |
| 1796 | glTranslatef(0,0,-zoom); // pull back on allong the zoom vector |
| 1797 | glRotatef(xRot, 1.0f, 0.0f, 0.0f); // pops us to the tilt |
| 1798 | glRotatef(-zRot, 0.0f, 1.0f, 0.0f); // gets us on our rot |
| 1799 | glTranslatef(-pan[0],-pan[2],pan[1]); // take us to the pos |
| 1800 | glRotatef(-90, 1.0f, 0.0f, 0.0f); // gets us into XY |
| 1801 | */ |
| 1802 | drawZZeroGrid(); |
| 1803 | |
| 1804 | glEnable(GL_LIGHTING); |
| 1805 | glDisable(GL_TEXTURE_2D); |
| 1806 | |
| 1807 | model.draw(); |
| 1808 | |
| 1809 | glPopMatrix(); |
| 1810 | return true; |
| 1811 | } |
| 1812 | |
| 1813 | bool ModelToolApp::drawOverlay() { |
| 1814 | glDisable(GL_LIGHTING); |