Changeset 2667 for code/branches/buildsystem3/src
- Timestamp:
- Feb 15, 2009, 12:48:03 AM (16 years ago)
- Location:
- code/branches/buildsystem3/src
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem3/src/core/Factory.h
r2662 r2667 49 49 #include <map> 50 50 #include <string> 51 #include "util/Integers.h"52 51 53 52 namespace orxonox -
code/branches/buildsystem3/src/core/Identifier.h
r2662 r2667 68 68 #include "Super.h" 69 69 #include "Functor.h" 70 #include "util/Integers.h"71 70 #include "util/Debug.h" 72 71 #include "util/String.h" -
code/branches/buildsystem3/src/core/RootGameState.cc
r2662 r2667 135 135 { 136 136 // 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) 138 138 try 139 139 { … … 158 158 159 159 this->deactivate(); 160 #if ORXONOX_COMPILER != ORXONOX_COMPILER_MSVC|| defined(NDEBUG)160 #if !defined(ORXONOX_COMPILER_MSVC) || defined(NDEBUG) 161 161 } 162 162 // Note: These are all unhandled exceptions that should not have made its way here! -
code/branches/buildsystem3/src/network/CMakeLists.txt
r2664 r2667 34 34 ) 35 35 ADD_SUBDIRECTORY(packet) 36 ADD_SUBDIRECTORY(synchronisable) 36 37 GET_ALL_HEADER_FILES(NETWORK_HDR_FILES) 37 38 SET(NETWORK_FILES ${NETWORK_SRC_FILES} ${NETWORK_HDR_FILES}) 38 39 39 40 GENERATE_SOURCE_GROUPS(${NETWORK_FILES}) 40 ADD_SOURCE_DIRECTORY(NETWORK_SRC_FILES synchronisable)41 41 42 42 ADD_LIBRARY(network SHARED ${NETWORK_FILES}) -
code/branches/buildsystem3/src/network/NetworkPrereqs.h
r2664 r2667 57 57 58 58 //----------------------------------------------------------------------- 59 // Includes60 //-----------------------------------------------------------------------61 #include "util/Integers.h"62 63 //-----------------------------------------------------------------------64 59 // Library global contants 65 60 //----------------------------------------------------------------------- -
code/branches/buildsystem3/src/network/TrafficControl.h
r2662 r2667 36 36 #include <utility> 37 37 #include <algorithm> 38 #include "util/Integers.h"39 38 #include "core/OrxonoxClass.h" 40 39 #include "network/ClientConnectionListener.h" -
code/branches/buildsystem3/src/network/synchronisable/CMakeLists.txt
r2662 r2667 1 SET(SRC_FILES1 ADD_SOURCE_FILES(NETWORK_SRC_FILES 2 2 NetworkCallbackManager.cc 3 3 Synchronisable.cc … … 5 5 SynchronisableVariable.cc 6 6 ) 7 8 ADD_SOURCE_FILES(SRC_FILES) -
code/branches/buildsystem3/src/network/synchronisable/SynchronisableVariable.h
r2662 r2667 35 35 #include <string> 36 36 #include <cassert> 37 #include "util/Integers.h"38 37 #include "core/Core.h" 39 38 #include "core/CoreIncludes.h" -
code/branches/buildsystem3/src/orxonox/objects/worldentities/Planet.cc
r2662 r2667 74 74 if(activeCamera) 75 75 { 76 Realdistance = this->getPosition().distance( activeCamera->getWorldPosition() );76 float distance = this->getPosition().distance( activeCamera->getWorldPosition() ); 77 77 // COUT(2) << distance << std::endl; 78 RealplanetRadius = this->getScale();78 float planetRadius = this->getScale(); 79 79 80 RealnewScale = 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)); 82 82 newScale = tempTest; 83 83 … … 90 90 void Planet::init() 91 91 { 92 RealscaleFactor = this->getScale();92 float scaleFactor = this->getScale(); 93 93 94 94 this->distList.push_back(10.0*scaleFactor); … … 103 103 this->distList.push_back(55.0*scaleFactor); 104 104 105 RealreductionValue = 0.2;105 float reductionValue = 0.2; 106 106 107 107 this->mesh_.getEntity()->getMesh()->generateLodLevels(distList, Ogre::ProgressiveMesh::VRQ_PROPORTIONAL, reductionValue); -
code/branches/buildsystem3/src/orxonox/objects/worldentities/Planet.h
r2662 r2667 71 71 } 72 72 73 inline void setAtmosphereSize( Realsize){73 inline void setAtmosphereSize(float size){ 74 74 this->atmosphereSize = size; 75 75 } 76 76 77 inline RealgetAtmosphereSize(){77 inline float getAtmosphereSize(){ 78 78 return this->atmosphereSize; 79 79 } … … 87 87 } 88 88 89 inline void setImageSize( Realsize){89 inline void setImageSize(float size){ 90 90 this->imageSize = size; 91 91 } 92 92 93 inline RealgetImageSize(){93 inline float getImageSize(){ 94 94 return this->imageSize; 95 95 } … … 106 106 std::string atmosphere_; 107 107 Mesh mesh_; 108 RealatmosphereSize;109 RealimageSize;108 float atmosphereSize; 109 float imageSize; 110 110 Ogre::Mesh::LodDistanceList distList; 111 111 BillboardSet billboard_;
Note: See TracChangeset
for help on using the changeset viewer.