Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 29, 2010, 7:11:36 PM (14 years ago)
Author:
rgrieder
Message:

Changed *.tga to *.png in code too.

Location:
code/branches/png2/src/modules/overlays/hud
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/png2/src/modules/overlays/hud/HUDBar.cc

    r6677 r7263  
    7676        material->getTechnique(0)->getPass(0)->setSceneBlending(Ogre::SBT_TRANSPARENT_ALPHA);
    7777        this->textureUnitState_ = material->getTechnique(0)->getPass(0)->createTextureUnitState();
    78         this->textureUnitState_->setTextureName("bar2.tga");
     78        this->textureUnitState_->setTextureName("bar2.png");
    7979        this->textureUnitState_->setNumMipmaps(0);
    8080        // use the default colour
  • code/branches/png2/src/modules/overlays/hud/HUDNavigation.cc

    r7163 r7263  
    200200                if ( !it->second.wasOutOfView_ )
    201201                {
    202                     it->second.panel_->setMaterialName( TextureGenerator::getMaterialName( "arrows.tga", it->first->getRadarObjectColour()) );
     202                    it->second.panel_->setMaterialName( TextureGenerator::getMaterialName( "arrows.png", it->first->getRadarObjectColour()) );
    203203                    it->second.wasOutOfView_ = true;
    204204                }
     
    258258                {
    259259                  //it->second.panel_->setMaterialName ( "Orxonox/NavTDC" );
    260                     it->second.panel_->setMaterialName( TextureGenerator::getMaterialName( "tdc.tga", it->first->getRadarObjectColour()) );
     260                    it->second.panel_->setMaterialName( TextureGenerator::getMaterialName( "tdc.png", it->first->getRadarObjectColour()) );
    261261                    it->second.wasOutOfView_ = false;
    262262                }
     
    328328                                       .createOverlayElement ( "Panel", "HUDNavigation_navMarker_" + getUniqueNumberString() ) );
    329329//     panel->setMaterialName ( "Orxonox/NavTDC" );
    330     panel->setMaterialName( TextureGenerator::getMaterialName( "tdc.tga", object->getRadarObjectColour()) );
     330    panel->setMaterialName( TextureGenerator::getMaterialName( "tdc.png", object->getRadarObjectColour()) );
    331331    panel->setDimensions ( navMarkerSize_ * xScale, navMarkerSize_ * yScale );
    332332//     panel->setColour( object->getRadarObjectColour() );
  • code/branches/png2/src/modules/overlays/hud/HUDRadar.cc

    r7184 r7263  
    6262        this->setMaximumDotSize(0.1f);
    6363
    64         this->shapeMaterials_[RadarViewable::Dot]      = "RadarDot.tga";
    65         this->shapeMaterials_[RadarViewable::Triangle] = "RadarTriangle.tga";
    66         this->shapeMaterials_[RadarViewable::Square]   = "RadarSquare.tga";
     64        this->shapeMaterials_[RadarViewable::Dot]      = "RadarDot.png";
     65        this->shapeMaterials_[RadarViewable::Triangle] = "RadarTriangle.png";
     66        this->shapeMaterials_[RadarViewable::Square]   = "RadarSquare.png";
    6767
    6868        this->owner_ = 0;
Note: See TracChangeset for help on using the changeset viewer.