MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / drawView

Method drawView

tools/modeltool/modeltool.cpp:1791–1811  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1789
1790
1791bool 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
1813bool ModelToolApp::drawOverlay() {
1814 glDisable(GL_LIGHTING);

Callers

nothing calls this directly

Calls 2

executeMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected