private static void init ( ) throws SlickException { init = true ; if ( fbo ) { fbo = GLContext . getCapabilities ( ) . GL_EXT_framebuffer_object ; } pbuffer = ( Pbuffer . getCapabilities ( ) & Pbuffer . PBUFFER_SUPPORTED ) != 0 ; pbufferRT = ( Pbuffer . getCapabilities ( ) & Pbuffer . RENDER_TEXTURE_SUPPORTED ) != 0 ; if ( ! fbo && ! pbuffer && ! pbufferRT ) { throw new SlickException ( "Your OpenGL card does not support offscreen buffers and hence can't handle the dynamic images required for this application." ) ; } Log . info ( "Offscreen Buffers FBO=" + fbo + " PBUFFER=" + pbuffer + " PBUFFERRT=" + pbufferRT ) ; }
Initialise offscreen rendering by checking what buffers are supported by the card