Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 24, 2008, 10:08:42 PM (16 years ago)
Author:
rgrieder
Message:
  • moved OrxonoxPlatform.h to util (didn't even notice util recently)
  • therefore was able to define uint32_t, etc. for all our libs in OrxonoxPlatform.h
  • made use of OgreRenderWindow::getAverageFPS() in HUD
Location:
code/branches/network/src/util
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/util/OrxonoxPlatform.h

    r1411 r1414  
    3636#define _OrxonoxPlatform_H__
    3737
    38 namespace orxonox {
    3938/* Initial platform/compiler-related stuff to set.
    4039*/
     
    191190#endif
    192191
    193 // Integer formats of fixed bit width
    194 // FIXME: consider 64 bit platforms!
    195 //typedef unsigned int uint32;
    196 //typedef unsigned short uint16;
    197 //typedef unsigned char uint8;
    198 // proper approach
    199 
     192//-----------------------------------------------------------------------
     193// fixed width integers
     194//-----------------------------------------------------------------------
     195#if ORXONOX_COMPILER == ORXONOX_COMPILER_MSVC
     196typedef __int8            int8_t;
     197typedef __int16           int16_t;
     198typedef __int32           int32_t;
     199typedef __int64           int64_t;
     200typedef unsigned __int8   uint8_t;
     201typedef unsigned __int16  uint16_t;
     202typedef unsigned __int32  uint32_t;
     203typedef unsigned __int64  uint64_t;
     204#else
     205# include "inttypes.h"
     206#endif
     207
     208namespace orxonox {
    200209#ifdef ORXONOX_DOUBLE_PRECISION
    201210typedef double Real;
     
    203212typedef float Real;
    204213#endif
     214}
    205215
    206216
     
    270280//#include <vld.h>
    271281
    272 } /* namespace orxonox */
    273 
    274282#endif /* _OrxonoxPlatform_H__ */
  • code/branches/network/src/util/UtilPrereqs.h

    r1062 r1414  
    3535#define _UtilPrereqs_H__
    3636
    37 #include "OrxonoxPlatform.h"
     37#include "util/OrxonoxPlatform.h"
    3838
    3939//-----------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.