@Override public void init() { super.init(); fbo = new FrameBuffer(Pixmap.Format.RGBA4444, Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), false); fboTex = fbo.getColorBufferTexture(); Gdx.gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); Gdx.gl.glEnable(GL_BLEND); SpriteBatch batch = new SpriteBatch(); batch.setProjectionMatrix(RadixClient.getInstance().getHudCamera().combined); fbo.bind(); batch.begin(); currentScreen.render(false, batch); batch.end(); FrameBuffer.unbind(); }
FrameBuffer.unbind();
batch.end(); FrameBuffer.unbind();
FrameBuffer.unbind();