Changeset 3361 in orxonox.OLD for orxonox/branches/parenting/src
- Timestamp:
- Jan 6, 2005, 10:25:29 PM (20 years ago)
- Location:
- orxonox/branches/parenting/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/parenting/src/glmenu_imagescreen.cc
r3359 r3361 47 47 void GLMenuImageScreen::init () 48 48 { 49 /* 49 50 int w = 680; 50 51 int h = 480; … … 60 61 this->backTex->loadImage("orx_tex.bmp"); 61 62 62 /* ------------painten */63 64 63 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 65 64 glLoadIdentity(); … … 68 67 // Bind the texture stored at the zero index of g_Texture[] 69 68 //glBindTexture(GL_TEXTURE_2D, g_Texture[0]); 69 */ 70 71 int e_bnd=0,b0=0,BANDS=64,j=0,k=0; // 0 = 32 band and 1 = 64 band. 72 int red,green,blue,alpha=100; 73 74 float vuX,vuY; 75 long x; 76 float gap=7.915f; // for default 77 double equVal,y1=0; 78 float AV_peak_falloff = 0.8f; // Spead the Peaks fall. 79 80 int n; 81 82 // Screen Size. 83 int screen_width = 640; 84 int screen_height = 480; 85 86 // Set Image Size. 87 int hud_width = 50; 88 int hud_height = 50; 89 90 // Start pos of image. 91 int hud_x = 10; 92 int hud_y = 10; 93 94 glEnable(GL_BLEND); 95 glEnable(GL_TEXTURE_2D); 96 97 // Select Our VU Meter Background Texture 98 this->backTex = new Texture(); 99 this->backTex->loadImage("orx_tex.bmp"); 100 glPushAttrib(GL_LIGHTING_BIT | GL_TRANSFORM_BIT); 101 102 glDisable(GL_LIGHTING); 103 glMatrixMode(GL_PROJECTION); 104 glPushMatrix(); 105 glLoadIdentity(); 106 glOrtho(0,screen_width,0,screen_height,-1,1); // Set Up An Ortho Screen 107 glMatrixMode(GL_MODELVIEW); 108 glLoadIdentity(); 109 glPushMatrix(); 110 glEnable(GL_BLEND); 111 112 glBegin(GL_QUADS); 113 glTexCoord2i(0, 0); glVertex2i(hud_x, hud_y); 114 glTexCoord2i(1, 0 ); glVertex2i( hud_x+hud_width, hud_y ); 115 glTexCoord2i( 1, 1 ); glVertex2i( hud_x+hud_width, hud_y+hud_height ); 116 glTexCoord2i( 0, 1 ); glVertex2i( hud_x, hud_y+hud_height ); 117 glEnd(); 118 119 glDisable(GL_BLEND); 120 glPopMatrix(); 121 glMatrixMode(GL_PROJECTION); 122 glPopMatrix(); 123 glPopAttrib(); 124 glDisable(GL_TEXTURE_2D); 125 glDisable(GL_BLEND); 126 // End of Background image code. 70 127 } 71 128 … … 92 149 void GLMenuImageScreen::draw () 93 150 { 151 /* 94 152 // Display a quad texture to the screen 95 153 glEnable(GL_TEXTURE_2D); … … 114 172 glEnd(); 115 173 glEnable(GL_TEXTURE_2D); 116 174 */ 175 117 176 SDL_GL_SwapBuffers(); 118 177 119 178 delete this->backTex; 120 SDL_Delay( 1000);179 SDL_Delay(5000); 121 180 } 122 181 -
orxonox/branches/parenting/src/world.cc
r3360 r3361 131 131 } 132 132 133 133 134 ErrorMessage World::resume() 134 135 { … … 136 137 } 137 138 139 138 140 void World::destroy() 139 141 { 140 141 142 } 142 143 … … 146 147 printf ("World::displayLoadScreen - start\n"); 147 148 148 GLMenuImageScreen* glmis = new GLMenuImageScreen(); 149 //GLMenuImageScreen* 150 glmis = new GLMenuImageScreen(); 149 151 glmis->init(); 150 152 glmis->draw(); … … 157 159 { 158 160 printf ("World::releaseLoadScreen - start\n"); 159 160 161 161 162 162 printf ("World::releaseLoadScreen - end\n"); … … 614 614 } 615 615 616 //glmis = new GLMenuImageScreen(); 617 glmis->init(); 618 //glmis->draw(); 619 616 620 // draw debug coord system 617 621 glCallList (objectList); -
orxonox/branches/parenting/src/world.h
r3342 r3361 16 16 class Camera; 17 17 class PNode; 18 class GLMenuImageScreen; 18 19 19 20 //! The game environment … … 72 73 bool bPause; 73 74 75 GLMenuImageScreen* glmis; 76 74 77 char* worldName; 75 78 int debugWorldNr;
Note: See TracChangeset
for help on using the changeset viewer.