Smooth example now also uses new example OpenGLWidget.

This commit is contained in:
David Williams
2014-05-25 21:15:20 +02:00
parent 349dc2b0e6
commit 6738c4fc9e
4 changed files with 5 additions and 272 deletions

View File

@ -98,8 +98,10 @@ int main(int argc, char *argv[])
meshHighLOD.translateVertices(Vector3DFloat(30, 0, 0));
//Pass the surface to the OpenGL window
openGLWidget.setMeshToRender(meshHighLOD);
openGLWidget.setMeshToRenderLowLOD(meshLowLOD);
openGLWidget.addMesh(meshHighLOD);
openGLWidget.addMesh(meshLowLOD);
openGLWidget.setViewableRegion(volData.getEnclosingRegion());
//Run the message pump.
return app.exec();