Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 18, 2009, 10:00:15 AM (16 years ago)
Author:
rgrieder
Message:

Replaced <OgrePrerequisites.h> with "util/OgreForwardRefs.h": I haven't yet realised that OgrePrerequisites.h includes about every single std header by including the OgreMemoryManager.h file.
And while at it, I took care of some type conversions (partially revealed by the missing OgrePrerequisites.h that disabled warnings)

Location:
code/branches/pch/src/orxonox/overlays
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pch/src/orxonox/overlays/OrxonoxOverlay.cc

    r3110 r3192  
    215215            if (angle < 0.0)
    216216                angle = -angle;
    217             angle -= 180.0 * (int)(angle / 180.0);
     217            angle -= 180.0f * (int)(angle / 180.0);
    218218
    219219            // take the reverse if angle is about 90 degrees
    220220            float tempAspect;
    221             if (angle > 89.0 && angle < 91.0)
     221            if (angle > 89.0f && angle < 91.0f)
    222222            {
    223223                tempAspect = 1.0 / this->windowAspectRatio_;
     
    231231            else
    232232            {
    233                 tempAspect = 1.0;
     233                tempAspect = 1.0f;
    234234                rotState_ = Inbetween;
    235235            }
     
    238238            // magnitude of the width is about the magnitude of the height.
    239239            // Correctly we would have to take the square root of width*height
    240             this->sizeCorrection_.x = 2.0 / (tempAspect + 1.0);
     240            this->sizeCorrection_.x = 2.0f / (tempAspect + 1.0f);
    241241            this->sizeCorrection_.y = tempAspect * this->sizeCorrection_.x;
    242242        }
  • code/branches/pch/src/orxonox/overlays/OrxonoxOverlay.h

    r3177 r3192  
    3838
    3939#include <string>
    40 #include <OgrePrerequisites.h>
    4140
    4241#include "util/Math.h"
     42#include "util/OgreForwardRefs.h"
    4343#include "core/BaseObject.h"
    4444#include "interfaces/WindowEventListener.h"
  • code/branches/pch/src/orxonox/overlays/OverlayGroup.h

    r3144 r3192  
    3838
    3939#include <set>
    40 #include <OgrePrerequisites.h>
    4140#include "util/Math.h"
     41#include "util/OgreForwardRefs.h"
    4242#include "core/BaseObject.h"
    4343
  • code/branches/pch/src/orxonox/overlays/OverlayText.h

    r3144 r3192  
    3434#include <string>
    3535#include "util/Math.h"
     36#include "util/OgreForwardRefs.h"
    3637#include "OrxonoxOverlay.h"
    3738
  • code/branches/pch/src/orxonox/overlays/console/InGameConsole.h

    r3177 r3192  
    3434
    3535#include <string>
     36#include "util/OgreForwardRefs.h"
    3637#include "core/Shell.h"
    3738#include "interfaces/WindowEventListener.h"
  • code/branches/pch/src/orxonox/overlays/hud/HUDBar.cc

    r3144 r3192  
    7878        this->textureUnitState_->setTextureName("bar2.tga");
    7979        // use the default colour
    80         this->textureUnitState_->setColourOperationEx(Ogre::LBX_MODULATE, Ogre::LBS_MANUAL, Ogre::LBS_CURRENT, ColourValue(0.2, 0.7, 0.2));
     80        this->textureUnitState_->setColourOperationEx(Ogre::LBX_MODULATE, Ogre::LBS_MANUAL, Ogre::LBS_CURRENT, ColourValue(0.2f, 0.7f, 0.2f));
    8181
    8282        this->bar_ = static_cast<Ogre::PanelOverlayElement*>(Ogre::OverlayManager::getSingleton()
  • code/branches/pch/src/orxonox/overlays/hud/HUDBar.h

    r3144 r3192  
    3636#include <map>
    3737#include <vector>
    38 #include <OgrePrerequisites.h>
    3938
    4039#include "util/Math.h"
     40#include "util/OgreForwardRefs.h"
    4141#include "core/BaseObject.h"
    4242#include "overlays/OrxonoxOverlay.h"
  • code/branches/pch/src/orxonox/overlays/hud/HUDNavigation.h

    r3177 r3192  
    3232#include "OrxonoxPrereqs.h"
    3333
    34 #include <OgrePrerequisites.h>
     34#include "util/OgreForwardRefs.h"
    3535#include "interfaces/Tickable.h"
    3636#include "overlays/OrxonoxOverlay.h"
  • code/branches/pch/src/orxonox/overlays/hud/HUDRadar.h

    r3177 r3192  
    3535#include <map>
    3636#include <vector>
    37 #include <OgrePrerequisites.h>
    3837
     38#include "util/OgreForwardRefs.h"
    3939#include "interfaces/RadarListener.h"
    4040#include "interfaces/RadarViewable.h"
  • code/branches/pch/src/orxonox/overlays/hud/UnderAttackHealthBar.cc

    r3110 r3192  
    4747        this->text_ = new OverlayText(this);
    4848        this->text_->setFont("Monofur");
    49         this->text_->setTextSize(0.04);
     49        this->text_->setTextSize(0.04f);
    5050        this->text_->setAlignmentString("center");
    5151        this->text_->setColour(ColourValue::White);
  • code/branches/pch/src/orxonox/overlays/notifications/NotificationQueue.cc

    r3158 r3192  
    4848    const std::string NotificationQueue::DEFAULT_FONT = "VeraMono";
    4949    const Vector2 NotificationQueue::DEFAULT_POSITION = Vector2(0.0,0.0);
    50     const float NotificationQueue::DEFAULT_FONT_SIZE  = 0.025;
     50    const float NotificationQueue::DEFAULT_FONT_SIZE  = 0.025f;
    5151
    5252    /**
  • code/branches/pch/src/orxonox/overlays/stats/Stats.h

    r3177 r3192  
    3232#include "OrxonoxPrereqs.h"
    3333
     34#include "util/OgreForwardRefs.h"
    3435#include "interfaces/Tickable.h"
    3536#include "overlays/OrxonoxOverlay.h"
Note: See TracChangeset for help on using the changeset viewer.