I was working on the same thing this weekend. I'm pretty much a noob at OpenGL, but I was poking around the jogl API and I believe those functions in LWJGL do something like this:
↧