Commit 6631b6b9 authored by Jan Möbius's avatar Jan Möbius

Scripting function to enable or disable two sided lighting

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16992 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 27df946e
......@@ -1379,6 +1379,11 @@ void ViewControlPlugin::setCoordsysProjection(bool _orthogonal) {
}
void ViewControlPlugin::setTwoSidedLighting(bool _enabled) {
PluginFunctions::viewerProperties().twoSidedLighting(_enabled);
}
void ViewControlPlugin::setDescriptions() {
emit setSlotDescription("translate(Vector,int)", "Translate Scene",
QString("TranslationVector,Viewer").split(","),
......@@ -1460,6 +1465,9 @@ void ViewControlPlugin::setDescriptions() {
emit setSlotDescription("viewingDirection(int)", "Get the current viewingDirection of a specific viewer.",
QStringList("ViewerId"), QStringList("Id of the viewer"));
emit setSlotDescription("setTwoSidedLighting(bool)", "Enable or disable two sided lighting.",
QStringList("enabled"), QStringList("Specifies whether to enable or disable two sided lighting."));
}
......
......@@ -342,6 +342,8 @@ class ViewControlPlugin : public QObject, BaseInterface , PickingInterface, Logg
/// Perspective or orthogonal
void setCoordsysProjection(bool _orthogonal);
void setTwoSidedLighting(bool _enabled);
};
#endif //ViewControlPlugin_HH
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment