Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 7, 2008, 3:39:48 PM (16 years ago)
Author:
landauf
Message:
  • AI ships are now displayed with a point with its teamcolour on the radar.
  • It's now possible to assign an arbitrary colour (and even a texture) to a RadarObject. But be aware the system has to create a new material for every colour (not for every object), so please use deterministic colours to reduce the amount of used materials to a bearable number.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/hud/HUD.h

    r1535 r1562  
    6363      public:
    6464        virtual void tick(float);
    65         void addRadarObject(Ogre::SceneNode* node, int colour = 0);
     65        void addRadarObject(Ogre::SceneNode* node, const ColourValue& colour = ColourValue(0.5, 0.5, 0.5, 1));
    6666        void removeRadarObject(Ogre::SceneNode* node);
    6767        void setRenderTimeRatio(float ratio);
Note: See TracChangeset for help on using the changeset viewer.