added jogl library

This commit is contained in:
codeanticode
2015-02-20 16:28:45 -05:00
parent 12b6626747
commit 37cdb40934
12 changed files with 17444 additions and 0 deletions
@@ -0,0 +1,28 @@
import processing.jogl.*;
PShape cube;
void setup() {
size(400, 400, JOGL.P3D);
smooth();
cube = createShape(BOX, 100);
}
void draw() {
background(120);
lights();
translate(mouseX, mouseY);
rotateX(frameCount * 0.01f);
rotateY(frameCount * 0.01f);
shape(cube);
}
void keyPressed() {
// Changing the smooth configuration restarts the OpenGL surface.
// Automatically recreates all the current GL resources.
noSmooth();
}