Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 6, 2008, 9:51:01 PM (16 years ago)
Author:
rgrieder
Message:
  • changed library dependency dir to lib_precompiled/include/ in msvc properties
  • fixed a bug with tolua pkg file in msvc
  • (u)int64_t to (unsigned) long long (C-Standard, so most c++ will have it anyway)
Location:
code/branches/gui/src/orxonox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/orxonox/OrxonoxStableHeaders.h

    r1670 r1724  
    2828
    2929/**
    30  @file  OrxonoxStableHeaders.h
    31  @brief Contains the bigger (or smaller) header files in order to precompile them with MSVC
     30 @file
     31 @brief Contains the frequently used header files of our own writing
    3232 */
    3333
     
    3737#include "util/OrxonoxPlatform.h"
    3838
    39 #if ORXONOX_COMPILER == ORXONOX_COMPILER_MSVC
     39#if ORXONOX_COMPILER == ORXONOX_COMPILER_MSVC && !defined(ORXONOX_DISABLE_PCH)
    4040
    4141// including std headers here is useless since they're already precompiled
     
    4545#  define WIN32_LEAN_AND_MEAN
    4646#endif
    47 
    4847#include <Ogre.h>
    4948#include <CEGUI.h>
     
    5352#include <boost/thread/thread.hpp>
    5453
    55 //-----------------------------------------------------------------------
    56 // ORXONOX HEADERS
    57 //-----------------------------------------------------------------------
    58 
    5954#include "tinyxml/ticpp.h"
    6055#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)
    6162
    6263#include "util/Convert.h"
     
    8889//#include "objects/WorldEntity.h"
    8990
    90 #endif /* Compiler MSVC */
     91#endif /* ifdef NDEBUG */
     92
     93#endif /* ORXONOX_COMPILER == ORXONOX_COMPILER_MSVC && !defined(ORXONOX_DISABLE_PCH) */
    9194
    9295#endif /* _OrxonoxStableHeaders_H__ */
  • code/branches/gui/src/orxonox/gamestates/GSGraphics.cc

    r1696 r1724  
    160160    void GSGraphics::ticked(const Clock& time)
    161161    {
    162         uint64_t timeBeforeTick = time.getRealMicroseconds();
     162        unsigned long long timeBeforeTick = time.getRealMicroseconds();
    163163        float dt = time.getDeltaTime();
    164164
     
    168168        this->tickChild(time);
    169169       
    170         uint64_t timeAfterTick = time.getRealMicroseconds();
     170        unsigned long long timeAfterTick = time.getRealMicroseconds();
    171171
    172172        tickTime_ += (unsigned int)(timeAfterTick - timeBeforeTick);
  • code/branches/gui/src/orxonox/gamestates/GSGraphics.h

    r1689 r1724  
    8080        unsigned long         frameCount_;
    8181        unsigned int          statisticsRefreshCycle_;
    82         uint64_t              statisticsStartTime_;
     82        unsigned long long    statisticsStartTime_;
    8383        unsigned long         statisticsStartCount_;
    8484        unsigned int          tickTime_;
  • code/branches/gui/src/orxonox/tools/Timer.h

    r1704 r1724  
    6262
    6363#include "OrxonoxPrereqs.h"
    64 #include "util/Integers.h"
    6564#include "core/OrxonoxClass.h"
    6665
     
    101100            /** @brief Gives the Timer some extra time. @param time The amount of extra time in seconds */
    102101            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); }
    104103            /** @brief Decreases the remaining time of the Timer. @param time The amount of time to remove */
    105104            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); }
    107106            /** @brief Sets the interval of the Timer. @param interval The interval */
    108107            inline void setInterval(float interval)
    109                 { this->interval_ = (int64_t)(interval * 1000000.0f); }
     108                { this->interval_ = (long long)(interval * 1000000.0f); }
    110109            /** @brief Sets bLoop to a given value. @param bLoop True = loop */
    111110            inline void setLoop(bool bLoop)
     
    119118            Executor* executor_; //!< The executor of the function that should be called when the time expires
    120119
    121             int64_t interval_; //!< The time-interval in micro seconds
     120            long long interval_; //!< The time-interval in micro seconds
    122121            bool bLoop_;         //!< If true, the function gets called every 'interval' seconds
    123122            bool bActive_;       //!< If true, the Timer ticks and calls the function if the time's up
    124123
    125             int64_t time_;      //!< Internal variable, counting the time till the next function-call
     124            long long time_;     //!< Internal variable, counting the time till the next function-call
    126125    };
    127126
Note: See TracChangeset for help on using the changeset viewer.