Changeset 10727
- Timestamp:
- Oct 31, 2015, 11:06:37 AM (9 years ago)
- Location:
- code/trunk/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/tools/Shader.cc
r9667 r10727 161 161 @brief Defines a new integer value for a given parameter. The parameter will be updated if the compositor is rendered the next time. 162 162 */ 163 void Shader::setParameter( size_t technique, size_t pass, const std::string& parameter, int value)163 void Shader::setParameter(unsigned short technique, unsigned short pass, const std::string& parameter, int value) 164 164 { 165 165 ParameterContainer container = {technique, pass, parameter, value}; … … 171 171 @brief Defines a new float value for a given parameter. The parameter will be updated if the compositor is rendered the next time. 172 172 */ 173 void Shader::setParameter( size_t technique, size_t pass, const std::string& parameter, float value)173 void Shader::setParameter(unsigned short technique, unsigned short pass, const std::string& parameter, float value) 174 174 { 175 175 ParameterContainer container = {technique, pass, parameter, value}; -
code/trunk/src/libraries/tools/Shader.h
r9550 r10727 89 89 virtual void cameraChanged(Ogre::Viewport* viewport, Ogre::Camera* oldCamera); 90 90 91 void setParameter( size_t technique, size_t pass, const std::string& parameter, float value);92 void setParameter( size_t technique, size_t pass, const std::string& parameter, int value);91 void setParameter(unsigned short technique, unsigned short pass, const std::string& parameter, float value); 92 void setParameter(unsigned short technique, unsigned short pass, const std::string& parameter, int value); 93 93 94 94 virtual void notifyMaterialRender(Ogre::uint32 pass_id, Ogre::MaterialPtr& materialPtr); … … 110 110 struct ParameterContainer 111 111 { 112 size_t technique_;///< The ID of the technique113 size_t pass_;///< The ID of the pass112 unsigned short technique_; ///< The ID of the technique 113 unsigned short pass_; ///< The ID of the pass 114 114 std::string parameter_; ///< The name of the parameter 115 115 -
code/trunk/src/modules/pong/PongAI.cc
r9667 r10727 211 211 { 212 212 // Calculate the exponent for the position-formula 213 float exp = pow(10 , 1 - 2*this->strength_); // strength: 0 -> exp = 10214 // strength: 0.5 -> exp = 1215 // strength: 1 -> exp = 0.1213 float exp = pow(10.0f, 1.0f - 2.0f*this->strength_); // strength: 0 -> exp = 10 214 // strength: 0.5 -> exp = 1 215 // strength: 1 -> exp = 0.1 216 216 217 217 // Calculate the relative position where to hit the ball with the bat -
code/trunk/src/modules/towerdefense/TowerDefense.cc
r10629 r10727 331 331 timeSinceLastSpawn_ = 0.0; 332 332 333 timeUntilNextWave_ = waveNumber_+20 ;333 timeUntilNextWave_ = waveNumber_+20.0f; 334 334 waveSize_ = waveNumber_+5; 335 335 } -
code/trunk/src/modules/towerdefense/TowerDefenseTower.cc
r10629 r10727 63 63 float reloadrate = getReloadRate(); 64 64 float reloadwaittime = getReloadWaitTime(); 65 this->setDamageMultiplier((upgrade+1)*2 );65 this->setDamageMultiplier((upgrade+1)*2.0f); 66 66 //this->setRotationThrust(2*this->getRotationThrust()); 67 67 reloadrate = 0.5f*reloadrate; -
code/trunk/src/modules/weapons/projectiles/SplitGunProjectile.cc
r10629 r10727 134 134 { 135 135 // Every child projectile should fly uniform in different directions -> Rotate the velocityOffset in every iteration 136 velocityOffset = Quaternion(Degree(360 /numberOfChilds_), velocityInitial.normalisedCopy()) * velocityOffset;136 velocityOffset = Quaternion(Degree(360.0f/numberOfChilds_), velocityInitial.normalisedCopy()) * velocityOffset; 137 137 velocityOffset.normalise(); 138 138 -
code/trunk/src/orxonox/Scene.cc
r10624 r10727 88 88 89 89 // No physics yet, XMLPort will do that. 90 const int defaultMaxWorldSize = 100000;90 const float defaultMaxWorldSize = 100000.0f; 91 91 this->negativeWorldRange_ = Vector3::UNIT_SCALE * -defaultMaxWorldSize; 92 92 this->positiveWorldRange_ = Vector3::UNIT_SCALE * defaultMaxWorldSize;
Note: See TracChangeset
for help on using the changeset viewer.