@Override public JCGLInterfaceGLES2 makeNewGL() throws JCGLException, ConstraintError, JCGLUnsupportedException { final JCGLImplementation gi = JOGLTestDisplay.makeContextWithOpenGL_ES2(); final Option<JCGLInterfaceGLES2> go = gi.getGLES2(); if (go.isSome()) { final Some<JCGLInterfaceGLES2> gs = (Option.Some<JCGLInterfaceGLES2>) go; return gs.value; } throw new UnreachableCodeException(); }
@Override public boolean isSupported() { return JOGLTestDisplay.isOpenGLES2Supported(); }
@Override public Log getLog() { return JOGLTestDisplay.getLog(JOGLTestDisplay.LOG_DESTINATION_OPENGL_ES_2_0); }