Added new icon that represent the changing of lighting state and modified function.

This commit is contained in:
Paolo Cignoni cignoni 2005-11-25 12:58:59 +00:00
parent 870d2ff6b0
commit edadbe2d46
3 changed files with 16 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -24,6 +24,9 @@
History
$Log$
Revision 1.30 2005/11/25 12:58:58 alemochi
Added new icon that represent the changing of lighting state and modified function.
Revision 1.29 2005/11/25 11:55:59 alemochi
Added function to Enable/Disable lighting (work in progress)
@ -484,8 +487,17 @@ void MainWindow::SetLight()
if (GLA()!=NULL)
{
const RenderMode &rm=GLA()->getRenderState();
if (rm.Lighting) GLA()->setLight(false);
else GLA()->setLight(true);
if (rm.Lighting)
{
GLA()->setLight(false);
setLightOnAct->setIcon(QIcon(":/images/lightoff.png"));
}
else
{
setLightOnAct->setIcon(QIcon(":/images/lighton.png"));
GLA()->setLight(true);
}
}
};

View File

@ -9,6 +9,7 @@
<file>images/save.png</file>
<file>images/smooth.png</file>
<file>images/wire.png</file>
<file>images/lighton.png</file>
<file>images/lighton.png</file>
<file>images/lightoff.png</file>
</qresource>
</RCC>