@Override public void init(final GLAutoDrawable drawable) { final GL gl = drawable.getGL(); System.err.println(JoglVersion.getGLInfo(gl, null)); System.err.println("Requested: "+drawable.getNativeSurface().getGraphicsConfiguration().getRequestedCapabilities()); System.err.println("Chosen : "+drawable.getChosenGLCapabilities()); System.err.println("GL impl. class "+gl.getClass().getName()); if( gl.isGL4ES3() ) { final GL4ES3 _gl = gl.getGL4ES3(); System.err.println("GL4ES3 retrieved, impl. class "+_gl.getClass().getName()); } if( gl.isGL3() ) { final GL3 _gl = gl.getGL3(); System.err.println("GL3 retrieved, impl. class "+_gl.getClass().getName()); } if( gl.isGLES3() ) { final GLES3 _gl = gl.getGLES3(); System.err.println("GLES3 retrieved, impl. class "+_gl.getClass().getName()); } if( gl.isGLES2() ) { final GLES2 _gl = gl.getGLES2(); System.err.println("GLES2 retrieved, impl. class "+_gl.getClass().getName()); } }
gl3ShaderProgram.destroy(MacOSXCGLContext.this.gl.getGL3()); gl3ShaderProgram = null;
} else { if (_context.getGL().isGL3()) { _context.setGL(new DebugGL3(_context.getGL().getGL3())); } else { if (_context.getGL().isGL2()) {
@Override protected void doDispose( GlimpseContext context ) { GL3 gl = context.getGL( ).getGL3( ); prog.dispose( gl ); buffer.dispose( gl ); } } );
@Override public void doDispose( GlimpseContext context ) { GL3 gl = context.getGL( ).getGL3( ); this.program.dispose( gl ); this.path.dispose( gl ); } }
@Override public void doPaintTo( GlimpseContext context ) { GL3 gl = context.getGL( ).getGL3( ); Axis2D axis = requireAxis2D( context ); GlimpseBounds bounds = getBounds( context ); this.program.begin( gl ); try { this.program.setAxisOrtho( gl, axis ); this.program.setViewport( gl, bounds ); this.program.draw( gl, style, path ); } finally { this.program.end( gl ); } }
@Override public void doPaintTo( GlimpseContext context ) { GL3 gl = context.getGL( ).getGL3( ); Axis2D axis = requireAxis2D( context ); GLUtils.enableStandardBlending( gl ); prog.begin( gl ); try { prog.setAxisOrtho( gl, axis ); prog.setRgba( gl, GlimpseColor.getWhite( ) ); prog.setPointSize( gl, 20.0f ); prog.draw( gl, buffer ); } finally { prog.end( gl ); GLUtils.disableBlending( gl ); } }
GL3 gl = context.getGL( ).getGL3( );