Changeset 8729 for code/trunk/src/libraries/tools
- Timestamp:
- Jul 4, 2011, 2:47:44 AM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
-
code/trunk/src/libraries/tools/CMakeLists.txt
r8351 r8729 1 1 SET_SOURCE_FILES(TOOLS_SRC_FILES 2 COMPILATION_BEGIN ResourceCompilation.cc 2 3 BUILD_UNIT ResourceBuildUnit.cc 3 4 ResourceCollection.cc 4 5 ResourceLocation.cc 5 COMPILATION_END 6 END_BUILD_UNIT 7 6 8 TextureGenerator.cc 7 9 Timer.cc 8 COMPILATION_BEGIN OgreCompilation.cc 10 11 BUILD_UNIT OgreBuildUnit.cc 9 12 BillboardSet.cc 10 13 DynamicLines.cc … … 13 16 ParticleInterface.cc 14 17 Shader.cc 15 COMPILATION_END 18 END_BUILD_UNIT 16 19 ) 20 17 21 #ADD_SUBDIRECTORY(bsp) 18 22 ADD_SUBDIRECTORY(interfaces) -
code/trunk/src/libraries/tools/Shader.h
r8079 r8729 32 32 #include "tools/ToolsPrereqs.h" 33 33 34 #include < map>34 #include <list> 35 35 #include <string> 36 #include <vector>37 38 36 #include <OgreCompositorInstance.h> 39 37 40 38 #include "util/MultiType.h" 41 #include "util/OgreForwardRefs.h"42 39 #include "core/ViewportEventListener.h" 43 40 -
code/trunk/src/libraries/tools/Timer.cc
r8079 r8729 42 42 #include "core/command/ConsoleCommand.h" 43 43 #include "core/command/CommandExecutor.h" 44 #include "core/command/Executor.h" 44 45 #include "core/command/Functor.h" 45 46 #include "tools/interfaces/TimeFactorListener.h" … … 175 176 { 176 177 return TimeFactorListener::getTimeFactor(); 178 } 179 180 /** 181 @brief Initializes and starts the timer, which will call an executor after some time. 182 @param interval The timer-interval in seconds 183 @param bLoop If true, the executor gets called every @a interval seconds 184 @param executor The executor that will be called 185 @param bKillAfterCall If true, the timer will be deleted after the executor was called 186 */ 187 void Timer::setTimer(float interval, bool bLoop, const ExecutorPtr& executor, bool bKillAfterCall) 188 { 189 this->setInterval(interval); 190 this->bLoop_ = bLoop; 191 this->executor_ = executor; 192 this->bActive_ = true; 193 194 this->time_ = this->interval_; 195 this->bKillAfterCall_ = bKillAfterCall; 196 197 executor->getFunctor()->setSafeMode(true); 177 198 } 178 199 -
code/trunk/src/libraries/tools/Timer.h
r8079 r8729 80 80 81 81 #include "core/OrxonoxClass.h" 82 #include "core/command/Executor .h"82 #include "core/command/ExecutorPtr.h" 83 83 84 84 namespace orxonox … … 109 109 Timer(float interval, bool bLoop, const ExecutorPtr& executor, bool bKillAfterCall = false); 110 110 111 /** 112 @brief Initializes and starts the timer, which will call an executor after some time. 113 @param interval The timer-interval in seconds 114 @param bLoop If true, the executor gets called every @a interval seconds 115 @param executor The executor that will be called 116 @param bKillAfterCall If true, the timer will be deleted after the executor was called 117 */ 118 void setTimer(float interval, bool bLoop, const ExecutorPtr& executor, bool bKillAfterCall = false) 119 { 120 this->setInterval(interval); 121 this->bLoop_ = bLoop; 122 this->executor_ = executor; 123 this->bActive_ = true; 124 125 this->time_ = this->interval_; 126 this->bKillAfterCall_ = bKillAfterCall; 127 128 executor->getFunctor()->setSafeMode(true); 129 } 111 void setTimer(float interval, bool bLoop, const ExecutorPtr& executor, bool bKillAfterCall = false); 130 112 131 113 void run();
Note: See TracChangeset
for help on using the changeset viewer.