package joglbugs; import javax.media.opengl.GLAutoDrawable; import javax.media.opengl.GLCapabilities; import javax.media.opengl.GLEventListener; import javax.media.opengl.GLProfile; import com.jogamp.newt.opengl.GLWindow; import com.jogamp.opengl.util.FPSAnimator; public final class TestES2 { public static void main( final String args[]) { final GLProfile pro = GLProfile.get(GLProfile.GLES2); final GLCapabilities caps = new GLCapabilities(pro); final GLWindow window = GLWindow.create(caps); window.setSize(640, 480); window.addGLEventListener(new GLEventListener() { @Override public void reshape( final GLAutoDrawable drawable, final int w, final int h, final int x, final int y) { // Nothing } @Override public void init( final GLAutoDrawable drawable) { // Nothing } @Override public void dispose( final GLAutoDrawable drawable) { // Nothing } @Override public void display( final GLAutoDrawable drawable) { // Nothing } }); final FPSAnimator animator = new FPSAnimator(window, 60); animator.start(); window.setVisible(true); } }