Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2667


Ignore:
Timestamp:
Feb 15, 2009, 12:48:03 AM (15 years ago)
Author:
rgrieder
Message:

Windows version compiling and running so far (msvc and mingw).

Location:
code/branches/buildsystem3/src
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem3/src/core/Factory.h

    r2662 r2667  
    4949#include <map>
    5050#include <string>
    51 #include "util/Integers.h"
    5251
    5352namespace orxonox
  • code/branches/buildsystem3/src/core/Identifier.h

    r2662 r2667  
    6868#include "Super.h"
    6969#include "Functor.h"
    70 #include "util/Integers.h"
    7170#include "util/Debug.h"
    7271#include "util/String.h"
  • code/branches/buildsystem3/src/core/RootGameState.cc

    r2662 r2667  
    135135    {
    136136        // Don't catch errors when having a debugger in msvc
    137 #if ORXONOX_COMPILER != ORXONOX_COMPILER_MSVC || defined(NDEBUG)
     137#if !defined(ORXONOX_COMPILER_MSVC) || defined(NDEBUG)
    138138        try
    139139        {
     
    158158
    159159            this->deactivate();
    160 #if ORXONOX_COMPILER != ORXONOX_COMPILER_MSVC || defined(NDEBUG)
     160#if !defined(ORXONOX_COMPILER_MSVC) || defined(NDEBUG)
    161161        }
    162162        // Note: These are all unhandled exceptions that should not have made its way here!
  • code/branches/buildsystem3/src/network/CMakeLists.txt

    r2664 r2667  
    3434)
    3535ADD_SUBDIRECTORY(packet)
     36ADD_SUBDIRECTORY(synchronisable)
    3637GET_ALL_HEADER_FILES(NETWORK_HDR_FILES)
    3738SET(NETWORK_FILES ${NETWORK_SRC_FILES} ${NETWORK_HDR_FILES})
    3839
    3940GENERATE_SOURCE_GROUPS(${NETWORK_FILES})
    40 ADD_SOURCE_DIRECTORY(NETWORK_SRC_FILES synchronisable)
    4141
    4242ADD_LIBRARY(network SHARED ${NETWORK_FILES})
  • code/branches/buildsystem3/src/network/NetworkPrereqs.h

    r2664 r2667  
    5757
    5858//-----------------------------------------------------------------------
    59 // Includes
    60 //-----------------------------------------------------------------------
    61 #include "util/Integers.h"
    62 
    63 //-----------------------------------------------------------------------
    6459// Library global contants
    6560//-----------------------------------------------------------------------
  • code/branches/buildsystem3/src/network/TrafficControl.h

    r2662 r2667  
    3636#include <utility>
    3737#include <algorithm>
    38 #include "util/Integers.h"
    3938#include "core/OrxonoxClass.h"
    4039#include "network/ClientConnectionListener.h"
  • code/branches/buildsystem3/src/network/synchronisable/CMakeLists.txt

    r2662 r2667  
    1 SET( SRC_FILES
     1ADD_SOURCE_FILES(NETWORK_SRC_FILES
    22  NetworkCallbackManager.cc
    33  Synchronisable.cc
     
    55  SynchronisableVariable.cc
    66)
    7 
    8 ADD_SOURCE_FILES(SRC_FILES)
  • code/branches/buildsystem3/src/network/synchronisable/SynchronisableVariable.h

    r2662 r2667  
    3535#include <string>
    3636#include <cassert>
    37 #include "util/Integers.h"
    3837#include "core/Core.h"
    3938#include "core/CoreIncludes.h"
  • code/branches/buildsystem3/src/orxonox/objects/worldentities/Planet.cc

    r2662 r2667  
    7474        if(activeCamera)
    7575        {
    76             Real distance = this->getPosition().distance( activeCamera->getWorldPosition() );
     76            float distance = this->getPosition().distance( activeCamera->getWorldPosition() );
    7777            //             COUT(2) << distance << std::endl;
    78             Real planetRadius = this->getScale();
     78            float planetRadius = this->getScale();
    7979
    80             Real newScale = 2 * distance / sqrt(distance*distance - planetRadius*planetRadius);
    81             Real tempTest = newScale*(1+Real(this->atmosphereSize)/Real(this->imageSize));
     80            float newScale = 2 * distance / sqrt(distance*distance - planetRadius*planetRadius);
     81            float tempTest = newScale*(1+float(this->atmosphereSize)/float(this->imageSize));
    8282            newScale = tempTest;
    8383
     
    9090    void Planet::init()
    9191    {
    92         Real scaleFactor = this->getScale();
     92        float scaleFactor = this->getScale();
    9393
    9494        this->distList.push_back(10.0*scaleFactor);
     
    103103        this->distList.push_back(55.0*scaleFactor);
    104104
    105         Real reductionValue = 0.2;
     105        float reductionValue = 0.2;
    106106
    107107        this->mesh_.getEntity()->getMesh()->generateLodLevels(distList, Ogre::ProgressiveMesh::VRQ_PROPORTIONAL, reductionValue);
  • code/branches/buildsystem3/src/orxonox/objects/worldentities/Planet.h

    r2662 r2667  
    7171            }
    7272           
    73             inline void setAtmosphereSize(Real size){
     73            inline void setAtmosphereSize(float size){
    7474                this->atmosphereSize = size;
    7575            }
    7676           
    77             inline Real getAtmosphereSize(){
     77            inline float getAtmosphereSize(){
    7878                return this->atmosphereSize;
    7979            }
     
    8787            }
    8888           
    89             inline void setImageSize(Real size){
     89            inline void setImageSize(float size){
    9090                this->imageSize = size;
    9191            }
    9292           
    93             inline Real getImageSize(){
     93            inline float getImageSize(){
    9494                return this->imageSize;
    9595            }
     
    106106            std::string atmosphere_;
    107107            Mesh mesh_;
    108             Real atmosphereSize;
    109             Real imageSize;
     108            float atmosphereSize;
     109            float imageSize;
    110110            Ogre::Mesh::LodDistanceList distList;
    111111            BillboardSet billboard_;
Note: See TracChangeset for help on using the changeset viewer.