Archived

This topic is now archived and is closed to further replies.

What's wrong with this?

This topic is 5376 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


  


		glClear(GL_COLOR_BUFFER_BIT);
		glColor3f(1.0f, 0.0f, 0.0f);
		glLoadIdentity();

		gluLookAt(0.0f, 0.0f, 10.0f, 0.0f, 0.0f, -100.0f, 0.0f, 1.0f, 0.0f);

		glBegin(GL_TRIANGLE);

		glVertexf(10.0f, 0.0f, 0.0f);
		glVertexf(0.0f, 10.0f, 0.0f);
		glVertexf(-10.0f, 0.0f, 0.0f);
		glEnd();

		glFlush();

  
I get the following errors ''GL_TRIANGLE'' : undeclared ''glVertexf'' : undeclared identifier Thanks in advance

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
lol. At least you didnt just copy and paste NeHe code like everyone else who visits that site does when they are n00bs. feel proud of yourself.

Share this post


Link to post
Share on other sites
quote:
Original post by Anonymous Poster
lol. At least you didnt just copy and paste NeHe code like everyone else who visits that site does when they are n00bs. feel proud of yourself.


lol hey man, know what? this is a sample code from the book, so I guess it''s a typo, I looked at some other code from the book and had fixed it before viewing these replys.......thanks though.

Share this post


Link to post
Share on other sites