hi, i got a short question
i got a star background but the GL_Point
did not color the “star” points…they are all black.
( gl.glColor3f ( 1.0f, 1.0f, 1.0f); is also not working)
what is wrong?
//Star Background
gl.glDisable(GL.GL_DEPTH_TEST);
gl.glDisable(GL.GL_LIGHTING);
gl.glPushMatrix();
gl.glCullFace(GL.GL_BACK);
gl.glTranslatef(0,0,0);
gl.glPointSize((float)2.0);
gl.glBegin(GL.GL_POINTS);
for (i=0;i<8000;i++)
{
gl.glColor4f (1.0f, 1.0f, 1.0f, 1.0f);
gl.glVertex3f(st_x[i],st_y[i],st_z[i]);
}
gl.glEnd();
gl.glPopMatrix();