Skip to content

Instantly share code, notes, and snippets.

@ryanthejuggler
Last active December 10, 2015 22:59
Show Gist options
  • Save ryanthejuggler/4506603 to your computer and use it in GitHub Desktop.
Save ryanthejuggler/4506603 to your computer and use it in GitHub Desktop.
Creating OpenGL geometry
Patch *front = new Patch(g);
for (int i = 0; i < k; ++i)
front->addQuad(outside[i], inside[i],
inside[(i + 1) % k], outside[(i + 1) % k]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment