|
|
|
@ -41,10 +41,12 @@ import com.jme3.renderer.jogl.JoglRenderer; |
|
|
|
|
import com.jogamp.opengl.util.Animator; |
|
|
|
|
import com.jogamp.opengl.util.AnimatorBase; |
|
|
|
|
import com.jogamp.opengl.util.FPSAnimator; |
|
|
|
|
|
|
|
|
|
import java.awt.GraphicsDevice; |
|
|
|
|
import java.awt.GraphicsEnvironment; |
|
|
|
|
import java.util.concurrent.atomic.AtomicBoolean; |
|
|
|
|
import java.util.logging.Logger; |
|
|
|
|
|
|
|
|
|
import com.jogamp.opengl.DebugGL2; |
|
|
|
|
import com.jogamp.opengl.DebugGL3; |
|
|
|
|
import com.jogamp.opengl.DebugGL3bc; |
|
|
|
@ -52,6 +54,7 @@ import com.jogamp.opengl.DebugGL4; |
|
|
|
|
import com.jogamp.opengl.DebugGL4bc; |
|
|
|
|
import com.jogamp.opengl.DebugGLES1; |
|
|
|
|
import com.jogamp.opengl.DebugGLES2; |
|
|
|
|
import com.jogamp.opengl.DebugGLES3; |
|
|
|
|
import com.jogamp.opengl.GL; |
|
|
|
|
import com.jogamp.opengl.GLAutoDrawable; |
|
|
|
|
import com.jogamp.opengl.GLCapabilities; |
|
|
|
@ -136,7 +139,9 @@ public abstract class JoglAbstractDisplay extends JoglContext implements GLEvent |
|
|
|
|
if (gl.isGLES2()) { |
|
|
|
|
glad.setGL(new DebugGLES2(gl.getGLES2())); |
|
|
|
|
} else { |
|
|
|
|
// TODO ES3
|
|
|
|
|
if (gl.isGLES3()) { |
|
|
|
|
glad.setGL(new DebugGLES3(gl.getGLES3())); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|