public void resize(float width, float height) { this.viewportWidth = width; this.viewportHeight = height; this.position.set(width / 2, height / 2, 0); this.update(); }
@Override public void render(float delta) { outgoing.render(delta); if(null!=incoming){ targetCamera.update(); Engine.getSpriteBatch().setProjectionMatrix(targetCamera.combined); incoming.render(delta); } }
@Override public void render(float delta) { incoming.render(delta); targetCamera.position.set(this.targetPositionOffset()); targetCamera.update(); Engine.getSpriteBatch().setProjectionMatrix(targetCamera.combined); outgoing.render(delta); }
this.defaultCamera.update(); this.spriteBatch.setProjectionMatrix(this.defaultCamera.combined); if (startupLoading.isLoaded()) {