Changeset 3394 in orxonox.OLD for orxonox/trunk/src/glmenu_imagescreen.cc
- Timestamp:
- Feb 3, 2005, 2:01:04 PM (20 years ago)
- File:
-
- 1 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);
Note: See TracChangeset
for help on using the changeset viewer.