Jump to content
  • Advertisement
Sign in to follow this  
Jonus

What can prevent points and lines from being drawn?

This topic is 4887 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Advertisement
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.)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!