Changeset 3394 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Feb 3, 2005, 2:01:04 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/glmenu_imagescreen.cc
r3380 r3394 19 19 #include "glmenu_imagescreen.h" 20 20 #include "importer/texture.h" 21 #include "importer/material.h" 21 22 22 23 using namespace std; … … 47 48 \todo this deconstructor is not jet implemented - do it 48 49 */ 49 GLMenuImageScreen::~GLMenuImageScreen () {} 50 GLMenuImageScreen::~GLMenuImageScreen() 51 { 52 if (backMat) 53 delete backMat; 54 } 50 55 51 56 … … 66 71 glMatrixMode(GL_MODELVIEW); 67 72 68 this->backTex = new Texture();69 this->backTex->loadImage("orx_tex.bmp");70 71 73 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 72 74 glLoadIdentity(); … … 79 81 80 82 // Select Our VU Meter Background Texture 81 this->backTex = new Texture(); 82 this->backTex->loadImage("../data/pictures/load_screen.jpg"); 83 83 this->backMat = new Material("load_screen"); 84 this->backMat->setDiffuseMap("../data/pictures/load_screen.jpg"); 84 85 this->maxValue = 10; 85 86 this->currentValue = 0; … … 170 171 glDisable(GL_LIGHTING); 171 172 173 backMat->select(); 172 174 glBegin(GL_QUADS); 173 175 glColor3f(0.96, 0.84, 0.34); -
orxonox/trunk/src/glmenu_imagescreen.h
r3368 r3394 11 11 12 12 class Texture; 13 class Material; 13 14 14 15 class GLMenuImageScreen : public BaseObject { … … 39 40 40 41 private: 41 char* backImageName; //! the name of the file of the background image42 float height, width; //! hight and width of the image43 float offsetX, offsetY; //! offset of the image from left and up44 Texture* backTex; //! background texture45 int currentValue; //! the current count of step() calls fired yet46 int maxValue; //!total count of steps42 char* backImageName; //!< the name of the file of the background image 43 float height, width; //!< hight and width of the image 44 float offsetX, offsetY; //!< offset of the image from left and up 45 Material* backMat; //!< Background Material. 46 int currentValue; //!< the current count of step() calls fired yet 47 int maxValue; //!< total count of steps 47 48 48 49 };
Note: See TracChangeset
for help on using the changeset viewer.