1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-10 18:24:11 +01:00

OP/GCS ModelView - Added transparent rendering support, as well as debug output with right-click

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1555 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
chebuzz 2010-09-07 12:52:52 +00:00 committed by chebuzz
parent 0af3d26981
commit 755c47d666

View File

@ -113,6 +113,7 @@ void ModelViewGadgetWidget::paintGL()
m_Light.glExecute(); m_Light.glExecute();
// Display the collection of GLC_Object // Display the collection of GLC_Object
m_World.render(0, glc::TransparentRenderFlag);
m_World.render(0, glc::ShadingFlag); m_World.render(0, glc::ShadingFlag);
// Display UI Info (orbit circle) // Display UI Info (orbit circle)
@ -171,6 +172,10 @@ void ModelViewGadgetWidget::mousePressEvent(QMouseEvent *e)
m_MoverController.setActiveMover(GLC_MoverController::TurnTable, e); m_MoverController.setActiveMover(GLC_MoverController::TurnTable, e);
updateGL(); updateGL();
break; break;
case (Qt::RightButton):
printf("Renderer - %s \n", (char*)glGetString(GL_RENDERER));
printf("Extensions - %s\n", (char*)glGetString(GL_EXTENSIONS));
break;
default: default:
break; break;
} }