GLAdapter is another way to run OpenGL /P3D. Both, Processing API and GLAdapter, use the same native libraries (JOGL) but obviously over different implementations . As Processing increased its version to 2.0 and higher my platform began to crash so I was forced to find a way to patch this bug. Let's suppose I'm not the only one with this problem so:
download GLAdapter.zip here
then unpack and install manualy
GLAdapter emulates a selected part of Processing API (P3D). It has the same names , accepts the same input params and shows the same output behavior. But the performance is not very sexy. Every usage start with this sample stub:
import ch.dieseite.glemulator.GLAdapter; GLAdapter adapter; void settings(){ size(200, 200); //leave Processing in 2D } void setup(){ adapter = new GLAdapter(200, 200); } void draw(){ adapter.background(200);// An API example (see also list below) adapter.repaint(); //flush jobs, must ALWAYS be called at the end }
There exist a class "GLBaseTest" which creates some test shapes.
Following functions is supported by GLAdapter: