Jump to content

  • Log In with Google      Sign In   
  • Create Account

lildragon555

Member Since 17 May 2011
Offline Last Active Jun 26 2011 03:46 PM

Topics I've Started

Lesson 39+40 Help

17 June 2011 - 02:45 PM

I understand the tutorial and can probably could implement stuff myself, but when I try to run the code, it doesn't seem to work. I just get a white background in my menu and nothing happens. Could it be because I'm using GLUT for most of the stuff?

Can't render quads

20 May 2011 - 03:26 PM

I attempted to create a simple box just placing points...but for some reason they come out as triangles instead of quads...
Any idea?

//Top
	glBegin(GL_QUADS);
		glVertex3f(0.0f, -4.0f, 0.0f);
		glVertex3f(5.0f, -4.0f, 0.0f);
		glVertex3f(0.0f, -4.0f, -5.0f);
		glVertex3f(5.0f, -4.0f, -5.0f);

	//Bottom
		glVertex3f(0.0f, -2.0f, 0.0f);
		glVertex3f(5.0f, -2.0f, 0.0f);
		glVertex3f(0.0f, -2.0f, -5.0f);
		glVertex3f(5.0f, -2.0f, -5.0f);

	//Left Side
		glVertex3f(0.0f, -4.0f, 0.0f);
		glVertex3f(0.0f, -4.0f, -5.0f);
		glVertex3f(0.0f, -2.0f, 0.0f);
		glVertex3f(0.0f, -2.0f, -5.0f);

	//Right Side
		glVertex3f(5.0f, -4.0f, 0.0f);
		glVertex3f(5.0f, -4.0f, -5.0f);
		glVertex3f(5.0f, -2.0f, 0.0f);
		glVertex3f(5.0f, -2.0f, -5.0f);

	//Front Side
		glVertex3f(0.0f, -4.0f, -5.0f);
		glVertex3f(5.0f, -4.0f, -5.0f);
		glVertex3f(0.0f, -2.0f, -5.0f);
		glVertex3f(5.0f, -2.0f, -5.0f);

	//Back Side
		glVertex3f(0.0f, -4.0f, 0.0f);
		glVertex3f(5.0f, -4.0f, 0.0f);
		glVertex3f(0.0f, -2.0f, 0.0f);
		glVertex3f(5.0f, -2.0f, 0.0f);
	glEnd();

PARTNERS