Skip to content

Instantly share code, notes, and snippets.

@Jezza
Created December 5, 2013 05:06
Show Gist options
  • Select an option

  • Save Jezza/7800440 to your computer and use it in GitHub Desktop.

Select an option

Save Jezza/7800440 to your computer and use it in GitHub Desktop.
glPushMatrix();
glTranslatef((float) p.x + 0.5F, (float) p.y + 1.5F, (float) p.z + 0.5F);
glColor4f(0.25F, 0.25F, 0.25F, 0.5F);
glBegin(GL_QUADS);
glVertex3f(0.0F, 0.0F, 0.0F);
glVertex3f(0.0F, 100.0F, 0.0F);
glVertex3f(100.0F, 100.0F, 0.0F);
glVertex3f(100.0F, 0.0F, 0.0F);
glEnd();
glPopMatrix();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment