Changeset 2242 in orxonox.OLD for orxonox/branches/dave/core/player.cc
- Timestamp:
- Jul 25, 2004, 10:00:08 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/dave/core/player.cc
r1994 r2242 76 76 { 77 77 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); 79 80 //shootLaser->addShootdExt(xCor,yCor,zCor,-.1,.4,.0); 80 shootRocket->addBackParable(xCor,yCor,zCor);81 //shootRocket->addBackParable(xCor,yCor,zCor); 81 82 82 83 … … 96 97 glPopMatrix();*/ 97 98 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 99 107 glTranslatef(xCor,yCor,5.0); 100 108 glRotatef(3*a,1.0,0.0,0.0); … … 102 110 //glTranslatef(xCor,yCor,3.0); 103 111 glBegin(GL_QUADS); 104 glColor3f( 1.0,0.0,0.0);112 glColor3f(.2,0.5,0.5); 105 113 glNormal3f(-1.0,0.0,0.0); 106 114 glVertex3f(-1.0,-1.0,-1.0); 107 115 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); 110 118 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); 117 124 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); 122 140 glVertex3f(1.0,-1.0,-1.0); 123 141 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); 124 148 125 149 … … 133 157 134 158 /* draw all the shoots additionaly */ 159 glColor3f(0,0,1); 135 160 shootLaser->drawShoot(); 136 161 shootRocket->drawShoot();
Note: See TracChangeset
for help on using the changeset viewer.