Revision: 1433
http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=1433&view=rev
Author: rorthomas
Date: 2010-07-13 19:27:23 +0000 (Tue, 13 Jul 2010)
Log Message:
-----------
added new method to skymanager
Modified Paths:
--------------
trunk/source/main/SkyManager.cpp
trunk/source/main/SkyManager.h
Modified: trunk/source/main/SkyManager.cpp
===================================================================
--- trunk/source/main/SkyManager.cpp 2010-07-13 13:06:38 UTC (rev 1432)
+++ trunk/source/main/SkyManager.cpp 2010-07-13 19:27:23 UTC (rev 1433)
@@ -70,6 +70,12 @@
mCaelumSystem->getUniversalClock()->setTimeScale (factor);
}
+Ogre::Light *SkyManager::getMainLight()
+{
+ if(mCaelumSystem && mCaelumSystem->getSun())
+ return mCaelumSystem->getSun()->getMainLight();
+ return 0;
+}
LongReal SkyManager::getTimeFactor()
{
return mCaelumSystem->getUniversalClock()->getTimeScale();
Modified: trunk/source/main/SkyManager.h
===================================================================
--- trunk/source/main/SkyManager.h 2010-07-13 13:06:38 UTC (rev 1432)
+++ trunk/source/main/SkyManager.h 2010-07-13 19:27:23 UTC (rev 1433)
@@ -42,7 +42,7 @@
/// change the time scale
void setTimeFactor(double f);
-
+ Ogre::Light *getMainLight();
/// gets the current time scale
double getTimeFactor();
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Rigsofrods-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel