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/hud
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.