Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2242 in orxonox.OLD for orxonox/branches/dave/core/player.cc


Ignore:
Timestamp:
Jul 25, 2004, 10:00:08 PM (21 years ago)
Author:
dave
Message:

orxonox/branches/dave: habe wieder mal was gemacht:)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/dave/core/player.cc

    r1994 r2242  
    7676{
    7777    shootLaser->addShoot(xCor,yCor+1.0,5);
    78     //shootLaser->addShootExt(xCor,yCor,zCor,.1,.4,.0);
     78    shootLaser->addShootExt(xCor,yCor,zCor,.1,.4,.0);
     79    shootLaser->addShootExt(xCor,yCor,zCor,-.1,.4,.0);
    7980    //shootLaser->addShootdExt(xCor,yCor,zCor,-.1,.4,.0);
    80     shootRocket->addBackParable(xCor,yCor,zCor);
     81    //shootRocket->addBackParable(xCor,yCor,zCor);
    8182
    8283
     
    9697  glPopMatrix();*/
    9798  glPushMatrix();
    98   //glEnable(GL_DEPTH_TEST);
     99  glEnable(GL_NORMALIZE);
     100  glEnable(GL_COLOR_MATERIAL);
     101  glEnable(GL_LIGHTING);
     102  glEnable(GL_LIGHT0);
     103  GLfloat LPosition[4]={0,20,30,1};
     104  glLightfv(GL_LIGHT0,GL_POSITION,&LPosition[0]);
     105  glColorMaterial(GL_FRONT_AND_BACK,GL_AMBIENT_AND_DIFFUSE);
     106 
    99107  glTranslatef(xCor,yCor,5.0);
    100108  glRotatef(3*a,1.0,0.0,0.0);
     
    102110  //glTranslatef(xCor,yCor,3.0);
    103111  glBegin(GL_QUADS);
    104   glColor3f(1.0,0.0,0.0);
     112  glColor3f(.2,0.5,0.5);
    105113  glNormal3f(-1.0,0.0,0.0);
    106114  glVertex3f(-1.0,-1.0,-1.0);
    107115  glVertex3f(-1.0,-1.0,1.0);
    108   glVertex3f(-.6,1.0,0.4);
    109   glVertex3f(-.6,1.0,-0.4);
     116  glVertex3f(-1,1.0,0.4);
     117  glVertex3f(-1,1.0,-0.4);
    110118 
    111   glNormal3f(0.0,-1.0,0.0);
    112   glColor3f(0.0,1.0,0.0);
    113   glVertex3f(-.6,1.0,.4);
    114   glVertex3f(-.6,1.0,-.4);
    115   glVertex3f(.6,1.0,-.4);
    116   glVertex3f(.6,1.0,.4);
     119  glNormal3f(1,0,0);
     120  glVertex3f(-.99,-1,-1);
     121  glVertex3f(-.99,-1,1);
     122  glVertex3f(-.99,1,.4);
     123  glVertex3f(-.99,1,-.4);
    117124 
    118   glNormal3f(-1.0,0.0,0.0);
    119   glColor3f(0.0,0.0,1.0);
    120   glVertex3f(.6,1.0,.4);
    121   glVertex3f(.6,1.0,-.4);
     125  glNormal3f(0.0,1.0,0.0);
     126  glVertex3f(-1,1.0,.4);
     127  glVertex3f(-1,1.0,-.4);
     128  glVertex3f(1,1.0,-.4);
     129  glVertex3f(1,1.0,.4);
     130 
     131  glNormal3f(0,-1,0);
     132  glVertex3f(-1,.99,.4);
     133  glVertex3f(-1,.99,-.4);
     134  glVertex3f(1,.99,-.4);
     135  glVertex3f(1,.99,.4);
     136 
     137  glNormal3f(1.0,0.0,0.0);
     138  glVertex3f(1,1,.4);
     139  glVertex3f(1,1,-.4);
    122140  glVertex3f(1.0,-1.0,-1.0);
    123141  glVertex3f(1.0,-1.0,1.0);
     142 
     143  glNormal3f(-1,0,0);
     144  glVertex3f(.99,1,.4);
     145  glVertex3f(.99,1,-.4);
     146  glVertex3f(.99,-1,-1);
     147  glVertex3f(.99,-1,1);
    124148 
    125149 
     
    133157 
    134158  /* draw all the shoots additionaly */
     159  glColor3f(0,0,1);
    135160  shootLaser->drawShoot();
    136161  shootRocket->drawShoot();
Note: See TracChangeset for help on using the changeset viewer.