I am using GLUT in ubuntu 10.10, when i try to draw smooth points in OPENGL using below code i am not getting circular points, instead of that
i am getting square points
void draw_points()
{
GLfloat v1[2] = {0.25,0.25};
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(0.8, 0.5, 0.0);
glPointSize(5.0f); //setting the size of the points
glEnable( GL_POINT_SPRITE ); // GL_POINT_SPRITE_ARB if you're
glEnable( GL_POINT_SMOOTH ); // using the functionality as an extension.
glEnable( GL_BLEND );
glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
glBegin(GL_POINTS);
glVertex2fv(v1);
glVertex2f(0.75,0.25);
glVertex2f(0.85,0.50);
glVertex2f(0.75,0.75);
glVertex2f(0.25,0.75);
glVertex2f(0.15,0.50);
glEnd();
glFlush();
}
please tell me where i am going wrong
thanks a lot in advance,
GG