Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3428 in orxonox.OLD


Ignore:
Timestamp:
Mar 1, 2005, 12:18:22 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: GLMenuImageScreen: singletonClass has private constructor.

Location:
orxonox/trunk/src
Files:
3 edited

Legend:

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

    r3394 r3428  
    1818
    1919#include "glmenu_imagescreen.h"
    20 #include "importer/texture.h"
     20
    2121#include "importer/material.h"
    2222
     
    156156  int barHeight = 30;
    157157
    158   int val = ((float)this->currentValue/(float)this->maxValue) * barWidth;
     158  int val = (int)((float)this->currentValue/(float)this->maxValue) * barWidth;
    159159
    160160  glMatrixMode(GL_PROJECTION);
  • orxonox/trunk/src/glmenu_imagescreen.h

    r3394 r3428  
    99
    1010#include "stdincl.h"
    11 
    1211class Texture;
    1312class Material;
     
    1514class GLMenuImageScreen : public BaseObject {
    1615
     16 private:
     17  GLMenuImageScreen ();
     18
    1719 public:
    18   GLMenuImageScreen ();
    1920  ~GLMenuImageScreen ();
    2021
  • orxonox/trunk/src/world.cc

    r3419 r3428  
    149149 
    150150  //GLMenuImageScreen*
    151   this->glmis = new GLMenuImageScreen();
     151  this->glmis = GLMenuImageScreen::getInstance();
    152152  this->glmis->init();
    153153  this->glmis->setMaximum(10);
Note: See TracChangeset for help on using the changeset viewer.