Changeset 3362 in orxonox.OLD for orxonox/branches/parenting
- Timestamp:
- Jan 6, 2005, 11:43:04 PM (20 years ago)
- Location:
- orxonox/branches/parenting/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/parenting/src/Makefile.in
r3360 r3362 299 299 esac; \ 300 300 done; \ 301 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/Makefile'; \301 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ 302 302 cd $(top_srcdir) && \ 303 $(AUTOMAKE) -- foreignsrc/Makefile303 $(AUTOMAKE) --gnu src/Makefile 304 304 .PRECIOUS: Makefile 305 305 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/branches/parenting/src/glmenu_imagescreen.cc
r3361 r3362 69 69 */ 70 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 default77 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 71 97 72 // Select Our VU Meter Background Texture 98 73 this->backTex = new Texture(); 99 74 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 Screen107 glMatrixMode(GL_MODELVIEW);108 glLoadIdentity();109 glPushMatrix();110 glEnable(GL_BLEND);111 75 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 76 // End of Background image code. 127 77 } … … 173 123 glEnable(GL_TEXTURE_2D); 174 124 */ 125 126 glClear( GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT); 127 128 // Screen Size. 129 int screen_width = 640; 130 int screen_height = 480; 175 131 132 // Set Image Size. 133 int hud_width = 400; 134 int hud_height = 400; 135 136 // Start pos of image. 137 int hud_x = 120; 138 int hud_y = 40; 139 140 glEnable(GL_BLEND); 141 glEnable(GL_TEXTURE_2D); 142 143 glPushAttrib(GL_LIGHTING_BIT | GL_TRANSFORM_BIT); 144 145 glDisable(GL_LIGHTING); 146 glMatrixMode(GL_PROJECTION); 147 glPushMatrix(); 148 glLoadIdentity(); 149 glOrtho(0,screen_width,0,screen_height,-1,1); // Set Up An Ortho Screen 150 glMatrixMode(GL_MODELVIEW); 151 glLoadIdentity(); 152 glPushMatrix(); 153 glEnable(GL_BLEND); 154 155 glBegin(GL_QUADS); 156 glTexCoord2i(0, 0); glVertex2i(hud_x, hud_y); 157 glTexCoord2i(1, 0 ); glVertex2i( hud_x+hud_width, hud_y ); 158 glTexCoord2i( 1, 1 ); glVertex2i( hud_x+hud_width, hud_y+hud_height ); 159 glTexCoord2i( 0, 1 ); glVertex2i( hud_x, hud_y+hud_height ); 160 glEnd(); 161 162 glDisable(GL_BLEND); 163 glPopMatrix(); 164 glMatrixMode(GL_PROJECTION); 165 glPopMatrix(); 166 glPopAttrib(); 167 glDisable(GL_TEXTURE_2D); 168 169 176 170 SDL_GL_SwapBuffers(); 177 178 delete this->backTex; 179 SDL_Delay(5000); 171 SDL_Delay(1000); 180 172 } 181 173 -
orxonox/branches/parenting/src/world.cc
r3361 r3362 615 615 616 616 //glmis = new GLMenuImageScreen(); 617 glmis->init(); 618 //glmis->draw(); 617 ///glmis->init(); 619 618 620 619 // draw debug coord system
Note: See TracChangeset
for help on using the changeset viewer.