tags:

views:

228

answers:

3

Where can I find sample code on mouse movements and polygon spins in OpenGL? I am using Java, so sample code in Java is preferred.

+1  A: 

You'd probably find this useful:

http://pepijn.fab4.be/software/nehe-java-ports/

Chris
A: 

If you would like to use the JOGL java libraries very useful sample code can be found here.

JOGL is pretty straight foreword and easy to grasp. Just be aware, the object oriented nature might make future/more advanced work with OpenGL in C/C++ a bit harder to grasp.

MainWindow.java in the .zip below is an example of exactly what your looking for. The code comes from the above link. code.zip

Brian Gianforcaro