hi,
i have tried this function,but the problem comes. it can’t render the color ,always
be the clour like a little yellow. i habe used glColor(,) but it doesn’t work
can you tell me where r the problems?
glPushAttrib(GL_CURRENT_BIT);
glPushMatrix();
glColor4f(1,1,1,1);
glBegin(GL_TRIANGLES);
glVertex3f(-2.7009000778198242,-3.8376998901367187,40.38330078125);
glVertex3f(1.3549000024795532,-4.5664000511169434,40.221298217773438);
glVertex3f(-1.6440000534057617,-4.8530998229980469,36.528598785400391);
//face number 2
glVertex3f(1.3549000024795532,-4.5664000511169434,40.221298217773438);
glVertex3f(4.8797001838684082,-6.7066001892089844,40.185901641845703);
glVertex3f(2.4974000453948975,-6.257199764251709,36.349498748779297);
//face number 3
glVertex3f(1.3549000024795532,-4.5664000511169434,40.221298217773438);
glVertex3f(2.4974000453948975,-6.257199764251709,36.349498748779297);
glVertex3f(-1.6440000534057617,-4.8530998229980469,36.528598785400391);
//face number 4
glVertex3f(-1.6440000534057617,-4.8530998229980469,36.528598785400391);
glVertex3f(2.4974000453948975,-6.257199764251709,36.349498748779297);
glVertex3f(-0.71420001983642578,-7.2413997650146484,33.297901153564453);
//face number 5
…
…
…
…
lVertex3f(-13.012399673461914,-16.798799514770508,44.657001495361328);
glVertex3f(-13.135199546813965,-16.976600646972656,44.394401550292969);
glVertex3f(-13.088800430297852,-16.942699432373047,44.426498413085937);
glEnd();
glPopMatrix();
glPopAttrib();