I want to draw some different size points using opengl. However, glPointSize(float) is not working. I can draw a few simple shapes on the screen. However, this command just does not work. All I see is a few tiny dots. I have posted sample code.
void GLWidget:aintGL() {
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(1,0,0);
glBegin(GL_POINTS);
glPointSize(10.3);
glVertex2f(0,0);
glVertex2f(.2, .5);
glVertex2f(-.4, .3);
glEnd();
}
Can someone help with this?
Bookmarks