What can prevent points and lines from being drawn?

Started by
2 comments, last by Janju 18 years, 8 months ago
With this a triangle is drawn on my screen:
glLoadIdentity();
		glBegin(GL_TRIANGLES);		
			glVertex3d(0,0,-50);
			glVertex3d(10,0,-80);
			glVertex3d(0,20,-30);
		glEnd();
Whe i change it to lines or points nothing is drawn at all on my screen:
glLoadIdentity();
		glPointSize(10.0);
		glBegin(GL_POINT);		
			glVertex3d(0,0,-50);
			glVertex3d(10,0,-80);
			glVertex3d(0,20,-30);
		glEnd();
What goes wrong there?
Advertisement
Shouldn't GL_POINT be GL_POINTS?
Quote:Original post by Kalasjniekof
Shouldn't GL_POINT be GL_POINTS?

Indeed it should.. I recommend you to use glGetError() to check for errors (it would have returned GL_INVALID_ENUM after that.)
glD'Oh

Ok guys, now everything seems right. Thanks for the fast help.

This topic is closed to new replies.

Advertisement