Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3362 in orxonox.OLD for orxonox/branches/parenting


Ignore:
Timestamp:
Jan 6, 2005, 11:43:04 PM (20 years ago)
Author:
patrick
Message:

orxonox/branches/parenting: remved HUD, reimplemented the display function. now rocks.

Location:
orxonox/branches/parenting/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/parenting/src/Makefile.in

    r3360 r3362  
    299299          esac; \
    300300        done; \
    301         echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/Makefile'; \
     301        echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/Makefile'; \
    302302        cd $(top_srcdir) && \
    303           $(AUTOMAKE) --foreign  src/Makefile
     303          $(AUTOMAKE) --gnu  src/Makefile
    304304.PRECIOUS: Makefile
    305305Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • orxonox/branches/parenting/src/glmenu_imagescreen.cc

    r3361 r3362  
    6969  */
    7070
    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);
    9671 
    9772  // Select Our VU Meter Background Texture
    9873  this->backTex = new Texture();
    9974  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);
    11175
    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);
    12676  // End of Background image code.
    12777}
     
    173123  glEnable(GL_TEXTURE_2D); 
    174124  */
     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;
    175131 
     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
    176170  SDL_GL_SwapBuffers();                   
    177 
    178   delete this->backTex;
    179   SDL_Delay(5000);
     171  SDL_Delay(1000);
    180172}
    181173
  • orxonox/branches/parenting/src/world.cc

    r3361 r3362  
    615615 
    616616  //glmis = new GLMenuImageScreen();
    617   glmis->init();
    618   //glmis->draw();
     617  ///glmis->init();
    619618
    620619  // draw debug coord system
Note: See TracChangeset for help on using the changeset viewer.