Skip to content
Snippets Groups Projects
Commit ea0948a1 authored by Max Lyon's avatar Max Lyon
Browse files

Rendering of OpenVolumeMesh without immediate mode.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16714 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 73439ab1
No related branches found
No related tags found
No related merge requests found
......@@ -179,7 +179,7 @@ int FileOpenVolumeMeshPlugin::loadObject(QString _filename) {
emit openedFile(obj->id());
// Go into solid flat shaded mode
PluginFunctions::setDrawMode(ACG::SceneGraph::DrawModes::SOLID_FLAT_SHADED, PluginFunctions::activeExaminer());
obj->setObjectDrawMode(ACG::SceneGraph::DrawModes::getDrawMode("Cells (flat shaded)"));
// Scale polyhedra a bit
obj->meshNode()->set_scaling(0.8);
......@@ -211,7 +211,7 @@ int FileOpenVolumeMeshPlugin::loadObject(QString _filename) {
emit openedFile(obj->id());
// Go into solid flat shaded mode
PluginFunctions::setDrawMode(ACG::SceneGraph::DrawModes::SOLID_FLAT_SHADED, PluginFunctions::activeExaminer());
obj->setObjectDrawMode(ACG::SceneGraph::DrawModes::getDrawMode("Cells (flat shaded)"));
// Scale polyhedra a bit
obj->meshNode()->set_scaling(0.8);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment