1515import java .nio .ByteBuffer ;
1616import java .nio .FloatBuffer ;
1717import java .nio .IntBuffer ;
18- import java .util .concurrent .CountDownLatch ;
18+ // import java.util.concurrent.CountDownLatch;
1919
2020import javax .media .opengl .GL ;
2121import javax .media .opengl .GL2 ;
2727import javax .media .opengl .GLCapabilitiesImmutable ;
2828import javax .media .opengl .GLContext ;
2929import javax .media .opengl .GLDrawable ;
30- import javax .media .opengl .GLEventListener ;
31- import javax .media .opengl .GLFBODrawable ;
30+ // import javax.media.opengl.GLEventListener;
31+ // import javax.media.opengl.GLFBODrawable;
3232import javax .media .opengl .GLProfile ;
33- import javax .media .opengl .awt .GLCanvas ;
33+ // import javax.media.opengl.awt.GLCanvas;
3434import javax .media .opengl .fixedfunc .GLMatrixFunc ;
3535import javax .media .opengl .glu .GLU ;
3636import javax .media .opengl .glu .GLUtessellator ;
3939import processing .core .PApplet ;
4040import processing .core .PGraphics ;
4141
42- import com .jogamp .newt .awt .NewtCanvasAWT ;
43- import com .jogamp .newt .opengl .GLWindow ;
44- import com .jogamp .opengl .FBObject ;
42+ // import com.jogamp.newt.awt.NewtCanvasAWT;
43+ // import com.jogamp.newt.opengl.GLWindow;
44+ // import com.jogamp.opengl.FBObject;
4545
4646
4747public class PJOGL extends PGL {
@@ -123,8 +123,8 @@ public class PJOGL extends PGL {
123123 }
124124*/
125125
126- protected static boolean USE_FBOLAYER_BY_DEFAULT = false ;
127- protected static boolean USE_JOGL_FBOLAYER = false ;
126+ // protected static boolean USE_FBOLAYER_BY_DEFAULT = false;
127+ // protected static boolean USE_JOGL_FBOLAYER = false;
128128
129129 // ........................................................
130130
@@ -147,25 +147,25 @@ public class PJOGL extends PGL {
147147 protected GL2 gl2x ;
148148
149149 /** The AWT-OpenGL canvas */
150- protected GLCanvas canvasAWT ;
150+ // protected GLCanvas canvasAWT;
151151
152152 /** The NEWT window */
153- protected GLWindow windowNEWT ;
153+ // protected GLWindow windowNEWT;
154154
155155 /** The NEWT-OpenGL canvas */
156- protected NewtCanvasAWT canvasNEWT ;
156+ // protected NewtCanvasAWT canvasNEWT;
157157
158158 /** The listener that fires the frame rendering in Processing */
159- protected PGLListener listener ;
159+ // protected PGLListener listener;
160160
161161 /** This countdown latch is used to maintain the synchronization between
162162 * Processing's drawing thread and JOGL's rendering thread */
163- protected CountDownLatch drawLatch = new CountDownLatch (0 );
163+ // protected CountDownLatch drawLatch = new CountDownLatch(0);
164164
165165 /** Flag used to do request final display() call to make sure that the
166166 * buffers are properly swapped.
167167 */
168- protected boolean prevCanDraw = false ;
168+ // protected boolean prevCanDraw = false;
169169
170170 /** Stores exceptions that ocurred during drawing */
171171 protected Exception drawException ;
@@ -175,16 +175,16 @@ public class PJOGL extends PGL {
175175 // JOGL's FBO-layer
176176
177177 /** Back (== draw, current frame) buffer */
178- protected FBObject backFBO ;
178+ // protected FBObject backFBO;
179179 /** Sink buffer, used in the multisampled case */
180- protected FBObject sinkFBO ;
180+ // protected FBObject sinkFBO;
181181 /** Front (== read, previous frame) buffer */
182- protected FBObject frontFBO ;
183- protected FBObject .TextureAttachment backTexAttach ;
184- protected FBObject .TextureAttachment frontTexAttach ;
182+ // protected FBObject frontFBO;
183+ // protected FBObject.TextureAttachment backTexAttach;
184+ // protected FBObject.TextureAttachment frontTexAttach;
185185
186- protected boolean changedFrontTex = false ;
187- protected boolean changedBackTex = false ;
186+ // protected boolean changedFrontTex = false;
187+ // protected boolean changedBackTex = false;
188188
189189 // ........................................................
190190
@@ -805,7 +805,7 @@ protected boolean hasShaders() {
805805
806806 // JOGL event listeners
807807
808-
808+ /*
809809 protected void getBuffers(GLWindow glWindow) {
810810 if (false) {
811811// if (capabilities.isFBO()) {
@@ -865,6 +865,7 @@ protected void getBuffers(GLWindow glWindow) {
865865
866866 }
867867 }
868+ */
868869
869870 protected void init (GLAutoDrawable glDrawable ) {
870871 capabilities = glDrawable .getChosenGLCapabilities ();
@@ -874,18 +875,19 @@ protected void init(GLAutoDrawable glDrawable) {
874875 if (!hasShaders ()) {
875876 throw new RuntimeException (MISSING_GLSL_ERROR );
876877 }
877- if (USE_JOGL_FBOLAYER && capabilities .isFBO ()) {
878- int maxs = maxSamples ();
879- numSamples = PApplet .min (capabilities .getNumSamples (), maxs );
880- }
878+ // if (USE_JOGL_FBOLAYER && capabilities.isFBO()) {
879+ // int maxs = maxSamples();
880+ // numSamples = PApplet.min(capabilities.getNumSamples(), maxs);
881+ // }
881882 }
882883
884+ /*
883885 protected class PGLListener implements GLEventListener {
884886 public PGLListener() {}
885887
886888 @Override
887889 public void display(GLAutoDrawable glDrawable) {
888- /*
890+
889891 getGL(glDrawable);
890892
891893 if (USE_JOGL_FBOLAYER && capabilities.isFBO()) {
@@ -956,7 +958,6 @@ public void display(GLAutoDrawable glDrawable) {
956958 drawException = ex;
957959 }
958960 drawLatch.countDown();
959- */
960961 }
961962
962963 @Override
@@ -1005,6 +1006,7 @@ public void reshape(GLAutoDrawable glDrawable, int x, int y, int w, int h) {
10051006// }
10061007// }
10071008 }
1009+ */
10081010
10091011 /*
10101012 protected void nativeMouseEvent(com.jogamp.newt.event.MouseEvent nativeEvent,
0 commit comments