SHARE
TWEET
Untitled
a guest
Oct 28th, 2015
5
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- @Override
- public void render(float delta) {
- buf.begin();
- Gdx.gl.glClearColor(0.6f, 0.8f, 0.2f, 1);
- Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
- viewport.update(viewportWidth, viewportHeight);
- stage.act(delta);
- stage.draw();
- viewport.update(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
- buf.end();
- Texture t = buf.getColorBufferTexture();
- t.setFilter(TextureFilter.Linear, TextureFilter.Linear);
- t.unsafeSetFilter(TextureFilter.Linear, TextureFilter.Linear, true);
- Gdx.gl.glClearColor(0.6f, 0.8f, 0.2f, 1);
- Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
- batch.getProjectionMatrix().setToOrtho2D(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
- batch.begin();
- batch.draw(t, 0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), 0, 0, t.getWidth(), t.getHeight(), false, true);
- batch.end();
- }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.

