프로세싱을 위한 openGL
import javax.media.opengl.*; import processing.opengl.*; float a; void setup() { size(800, 600, OPENGL); } void draw() { background(255); PGraphicsOpenGL pgl = (PGraphicsOpenGL) g; // g may change GL gl = pgl.beginGL(); // always use the GL object returned by beginGL // Do some things with gl.xxx functions here. // For example, the program above is translated into: gl.glColor4f(0.7, 0.7, 0.7, 0.8); gl.glTranslatef(width/2, height/2, 0); gl.glRotatef(a, 1, 0, 0); gl.glRotatef(a*2, 0, 1, 0); gl.glRectf(-200, -200, 200, 200); gl.glRotatef(90, 1, 0, 0); gl.glRectf(-200, -200, 200, 200); pgl.endGL(); a += 0.5; }
프로세싱을 위한 AR
프로세싱 PVector
프로세싱 nature of code
Open Frameworks ==