PDA

View Full Version : how to draw point



firenze
10-31-2003, 04:55 PM
glPolygonMode(GL_FRONT_AND_BACK,GL_POINT);
glPointSize(5.0);
glBegin(GL_POINT);
glVertex3f(**)
glEnd();

the point does not appear.
is there any wrong in the above code?

jessica
10-31-2003, 09:20 PM
Maybe you are not setting ortho or glperspective right? What is ii?

Jess

mikael_aronsson
11-01-2003, 01:14 AM
Hi !

If it's not a typo, then try GL_POINTS instead (with an 'S' at the end), should work much better.

Mikael

firenze
11-02-2003, 04:30 AM
it works!

thanks a lot!


Originally posted by mikael_aronsson:
Hi !

If it's not a typo, then try GL_POINTS instead (with an 'S' at the end), should work much better.

Mikael