Better templatization of addMesh.

This commit is contained in:
David Williams
2014-05-23 17:02:46 +02:00
parent 37bdf8e3ac
commit 9f5b2e1659
3 changed files with 41 additions and 52 deletions

View File

@ -85,9 +85,9 @@ int main(int argc, char *argv[])
//auto mesh2 = extractCubicMesh(&volData, PolyVox::Region(Vector3DInt32(32, 32, 32), Vector3DInt32(63, 63, 63)));
//Pass the surface to the OpenGL window
openGLWidget.setMeshToRender(mesh);
openGLWidget.addMesh(mesh);
openGLWidget.setViewableRegion(volData.getEnclosingRegion());
//openGLWidget.setMeshToRender(mesh2);
//openGLWidget.addMesh(mesh2);
//Run the message pump.
return app.exec();