Skip to content

Instantly share code, notes, and snippets.

@timpulver
Created December 5, 2012 16:29
Show Gist options
  • Save timpulver/4217147 to your computer and use it in GitHub Desktop.
Save timpulver/4217147 to your computer and use it in GitHub Desktop.
[Processing, Eclipse] Using OpenGL in Eclipse with Processing 2.0
// Copied from Processing.org Forum user voodoc
I had a hard time finding the answer for this, so I thought I would put this here.
1. Create new Java Project.
2. Create a new folder in you project folder named "lib".
3. Right click "lib" and import all of the files contained in: \ Processing_2.0b3 \ core \ library.
4. Shift click three jar's: core.jar, gluegen-rt.jar, & jogl-all.jar.
5. Right click one of the selected files and go to "Build Path" and then "Add to Build Path".
6. Right click on one of the new .jar's in your build path above, and go to "Build Path" and then "Configure Build Path".
7. In this menu, expand both gluegen-rt.jar and jogl-all.jar.
8. Under gluegen-rt.jar, select the Native Library Location entry and click Edit.
9. Click the "Workspace" button and navigate to your new "lib" folder containing your imports.
10. Do the same for the Native Library Location entry under jogl-all.jar.
* Also, you will need to add the import statement: import processing.opengl.*; to use OpenGL in your document. *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment