JOGL Code not working anymore in P2.08a
in
Core Library Questions
•
1 year ago
Why is this old code not working any more in Processing 2.08a?
I always get an error:
cannot convert from PGL to GL
I always get an error:
cannot convert from PGL to GL
- PGraphicsOpenGL pgl = (PGraphicsOpenGL) g; // processings opengl graphics object
GL gl = pgl.beginGL(); // JOGL's GL object
gl.glEnable( GL.GL_BLEND );
gl.glEnable(GL.GL_LINE_SMOOTH);
// This fixes the overlap issue
gl.glDisable(GL.GL_DEPTH_TEST);
// Define the blend mode
gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE);
stars.drawStars(gl);
flock.run(gl);
gl.glDisable(GL.GL_BLEND);
pgl.endGL();
1