mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-20 03:16:10 +00:00
Added new icon that represent the changing of lighting state and modified function.
This commit is contained in:
parent
870d2ff6b0
commit
edadbe2d46
BIN
src/meshlab/images/lightoff.png
Normal file
BIN
src/meshlab/images/lightoff.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user