Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4101 in orxonox.OLD for orxonox/trunk/src


Ignore:
Timestamp:
May 7, 2005, 3:11:14 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: simple loading facility

Location:
orxonox/trunk/src/glmenu
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/glmenu/glmenu_imagescreen.cc

    r4100 r4101  
    2323#include "material.h"
    2424
     25CREATE_FACTORY(GLMenuImageScreen);
     26
     27
    2528using namespace std;
    2629/**
     
    3437   this->init();
    3538}
     39
     40
     41GLMenuImageScreen::GLMenuImageScreen (TiXmlElement* root)
     42{
     43  this->init();
     44
     45  const char* string;
     46
     47  // Model Loading     
     48  string = grabParameter( root, "BackgroundImage");
     49  if( string != NULL)
     50    this->setBackgroundImage(string);
     51 
     52  string = grabParameter( root, "BarImage");
     53  if (string != NULL)
     54    this->setBarImage(string);
     55
     56}
     57
    3658
    3759/**
  • orxonox/trunk/src/glmenu/glmenu_imagescreen.h

    r4099 r4101  
    1111
    1212class Material;
     13class TiXmlElement;
    1314
    1415class GLMenuImageScreen : public BaseObject {
    1516
    16  private:
    17 
    1817 public:
    1918  GLMenuImageScreen ();
     19  GLMenuImageScreen (TiXmlElement* root);
    2020  virtual ~GLMenuImageScreen ();
    2121
Note: See TracChangeset for help on using the changeset viewer.