Where can I find example code on mouse movements and polygon rotation in OpenGL?

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

0
java opengl


source to share


2 answers


You will probably find this useful:



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

+1


source to share


If you want to use the JOGL java libraries, a very useful code example can be found here .

JOGL is pretty straight forward and easy to understand. Just keep in mind that the object oriented nature may make future / more complex OpenGL work in C / C ++ more challenging.



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

0


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics