mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-30 08: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:
parent
0af3d26981
commit
755c47d666
@ -113,6 +113,7 @@ void ModelViewGadgetWidget::paintGL()
|
||||
m_Light.glExecute();
|
||||
|
||||
// Display the collection of GLC_Object
|
||||
m_World.render(0, glc::TransparentRenderFlag);
|
||||
m_World.render(0, glc::ShadingFlag);
|
||||
|
||||
// Display UI Info (orbit circle)
|
||||
@ -171,6 +172,10 @@ void ModelViewGadgetWidget::mousePressEvent(QMouseEvent *e)
|
||||
m_MoverController.setActiveMover(GLC_MoverController::TurnTable, e);
|
||||
updateGL();
|
||||
break;
|
||||
case (Qt::RightButton):
|
||||
printf("Renderer - %s \n", (char*)glGetString(GL_RENDERER));
|
||||
printf("Extensions - %s\n", (char*)glGetString(GL_EXTENSIONS));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user