Changeset 1724 for code/branches/gui/src/orxonox
- Timestamp:
- Sep 6, 2008, 9:51:01 PM (16 years ago)
- Location:
- code/branches/gui/src/orxonox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/OrxonoxStableHeaders.h
r1670 r1724 28 28 29 29 /** 30 @file OrxonoxStableHeaders.h31 @brief Contains the bigger (or smaller) header files in order to precompile them with MSVC30 @file 31 @brief Contains the frequently used header files of our own writing 32 32 */ 33 33 … … 37 37 #include "util/OrxonoxPlatform.h" 38 38 39 #if ORXONOX_COMPILER == ORXONOX_COMPILER_MSVC 39 #if ORXONOX_COMPILER == ORXONOX_COMPILER_MSVC && !defined(ORXONOX_DISABLE_PCH) 40 40 41 41 // including std headers here is useless since they're already precompiled … … 45 45 # define WIN32_LEAN_AND_MEAN 46 46 #endif 47 48 47 #include <Ogre.h> 49 48 #include <CEGUI.h> … … 53 52 #include <boost/thread/thread.hpp> 54 53 55 //-----------------------------------------------------------------------56 // ORXONOX HEADERS57 //-----------------------------------------------------------------------58 59 54 #include "tinyxml/ticpp.h" 60 55 #include "tinyxml/tinyxml.h" 56 57 58 //----------- Our files ---------- 59 //-------------------------------- 60 // only include when not debugging so that we may find issues with missing headers quicker 61 #if defined(NDEBUG) 61 62 62 63 #include "util/Convert.h" … … 88 89 //#include "objects/WorldEntity.h" 89 90 90 #endif /* Compiler MSVC */ 91 #endif /* ifdef NDEBUG */ 92 93 #endif /* ORXONOX_COMPILER == ORXONOX_COMPILER_MSVC && !defined(ORXONOX_DISABLE_PCH) */ 91 94 92 95 #endif /* _OrxonoxStableHeaders_H__ */ -
code/branches/gui/src/orxonox/gamestates/GSGraphics.cc
r1696 r1724 160 160 void GSGraphics::ticked(const Clock& time) 161 161 { 162 u int64_ttimeBeforeTick = time.getRealMicroseconds();162 unsigned long long timeBeforeTick = time.getRealMicroseconds(); 163 163 float dt = time.getDeltaTime(); 164 164 … … 168 168 this->tickChild(time); 169 169 170 u int64_ttimeAfterTick = time.getRealMicroseconds();170 unsigned long long timeAfterTick = time.getRealMicroseconds(); 171 171 172 172 tickTime_ += (unsigned int)(timeAfterTick - timeBeforeTick); -
code/branches/gui/src/orxonox/gamestates/GSGraphics.h
r1689 r1724 80 80 unsigned long frameCount_; 81 81 unsigned int statisticsRefreshCycle_; 82 u int64_tstatisticsStartTime_;82 unsigned long long statisticsStartTime_; 83 83 unsigned long statisticsStartCount_; 84 84 unsigned int tickTime_; -
code/branches/gui/src/orxonox/tools/Timer.h
r1704 r1724 62 62 63 63 #include "OrxonoxPrereqs.h" 64 #include "util/Integers.h"65 64 #include "core/OrxonoxClass.h" 66 65 … … 101 100 /** @brief Gives the Timer some extra time. @param time The amount of extra time in seconds */ 102 101 inline void addTime(float time) 103 { if (time > 0.0f) this->time_ += ( int64_t)(time * 1000000.0f); }102 { if (time > 0.0f) this->time_ += (long long)(time * 1000000.0f); } 104 103 /** @brief Decreases the remaining time of the Timer. @param time The amount of time to remove */ 105 104 inline void removeTime(float time) 106 { if (time > 0.0f) this->time_ -= ( int64_t)(time * 1000000.0f); }105 { if (time > 0.0f) this->time_ -= (long long)(time * 1000000.0f); } 107 106 /** @brief Sets the interval of the Timer. @param interval The interval */ 108 107 inline void setInterval(float interval) 109 { this->interval_ = ( int64_t)(interval * 1000000.0f); }108 { this->interval_ = (long long)(interval * 1000000.0f); } 110 109 /** @brief Sets bLoop to a given value. @param bLoop True = loop */ 111 110 inline void setLoop(bool bLoop) … … 119 118 Executor* executor_; //!< The executor of the function that should be called when the time expires 120 119 121 int64_t interval_;//!< The time-interval in micro seconds120 long long interval_; //!< The time-interval in micro seconds 122 121 bool bLoop_; //!< If true, the function gets called every 'interval' seconds 123 122 bool bActive_; //!< If true, the Timer ticks and calls the function if the time's up 124 123 125 int64_t time_;//!< Internal variable, counting the time till the next function-call124 long long time_; //!< Internal variable, counting the time till the next function-call 126 125 }; 127 126
Note: See TracChangeset
for help on using the changeset viewer.