@Override public void setView (OrthographicCamera camera) { batch.setProjectionMatrix(camera.combined); float width = camera.viewportWidth * camera.zoom; float height = camera.viewportHeight * camera.zoom; float w = width * Math.abs(camera.up.y) + height * Math.abs(camera.up.x); float h = height * Math.abs(camera.up.y) + width * Math.abs(camera.up.x); viewBounds.set(camera.position.x - w / 2, camera.position.y - h / 2, w, h); }
@Override public void setView (Matrix4 projection, float x, float y, float width, float height) { batch.setProjectionMatrix(projection); viewBounds.set(x, y, width, height); }
@Override public void setView (OrthographicCamera camera) { batch.setProjectionMatrix(camera.combined); float width = camera.viewportWidth * camera.zoom; float height = camera.viewportHeight * camera.zoom; float w = width * Math.abs(camera.up.y) + height * Math.abs(camera.up.x); float h = height * Math.abs(camera.up.y) + width * Math.abs(camera.up.x); viewBounds.set(camera.position.x - w / 2, camera.position.y - h / 2, w, h); }
@Override public void setView (Matrix4 projection, float x, float y, float width, float height) { batch.setProjectionMatrix(projection); viewBounds.set(x, y, width, height); }
public void draw () { Camera camera = viewport.getCamera(); camera.update(); if (!root.isVisible()) return; Batch batch = this.batch; batch.setProjectionMatrix(camera.combined); batch.begin(); root.draw(batch, 1); batch.end(); if (debug) drawDebug(); }
public void draw () { Camera camera = viewport.getCamera(); camera.update(); if (!root.isVisible()) return; Batch batch = this.batch; batch.setProjectionMatrix(camera.combined); batch.begin(); root.draw(batch, 1); batch.end(); if (debug) drawDebug(); }
@Override public void setView (Matrix4 projection, float x, float y, float width, float height) { batch.setProjectionMatrix(projection); viewBounds.set(x, y, width, height); }
@Override public void setView (OrthographicCamera camera) { batch.setProjectionMatrix(camera.combined); float width = camera.viewportWidth * camera.zoom; float height = camera.viewportHeight * camera.zoom; float w = width * Math.abs(camera.up.y) + height * Math.abs(camera.up.x); float h = height * Math.abs(camera.up.y) + width * Math.abs(camera.up.x); viewBounds.set(camera.position.x - w / 2, camera.position.y - h / 2, w, h); }
public void draw () { Camera camera = viewport.getCamera(); camera.update(); if (!root.isVisible()) return; Batch batch = this.batch; if (batch != null) { batch.setProjectionMatrix(camera.combined); batch.begin(); root.draw(batch, 1); batch.end(); } if (debug) drawDebug(); }
public void draw () { Camera camera = viewport.getCamera(); camera.update(); if (!root.isVisible()) return; Batch batch = this.batch; if (batch != null) { batch.setProjectionMatrix(camera.combined); batch.begin(); root.draw(batch, 1); batch.end(); } if (debug) drawDebug(); }
public void draw () { Camera camera = stage.getCamera(); Group root = stage.getRoot(); Batch batch = stage.getBatch(); camera.update(); if (!root.isVisible()) return; if (batch != null) { batch.setProjectionMatrix(camera.combined); batch.begin(); root.draw(batch, 1); batch.end(); } if (root.getDebug()) super.drawDebug(); }
public void draw () { Camera camera = viewport.getCamera(); camera.update(); if (!root.isVisible()) return; Batch batch = this.batch; batch.setProjectionMatrix(camera.combined); batch.begin(); root.draw(batch, 1); batch.end(); if (debug) drawDebug(); }
batch.setProjectionMatrix(camera.combined); batch.setProjectionMatrix(projectionCpy);
@Override protected void initialize() { camera = new OrthographicCamera(Gdx.graphics.getWidth(), Gdx.graphics.getHeight()); camera.setToOrtho(false); camera.update(); renderer = new ShapeRenderer(); stage = new Stage(); stage.getBatch().setProjectionMatrix(camera.combined); skin = new Skin(Gdx.files.classpath("net/mostlyoriginal/plugin/profiler/skin/uiskin.json")); // setup some static config like colors etc SystemProfilerGUI.GRAPH_H_LINE.set(Color.ORANGE); gui = new SystemProfilerGUI(skin, "default"); gui.setResizeBorder(8); gui.show(stage); gui.setWidth(Gdx.graphics.getWidth()); }
@Override protected void initialize() { camera = new OrthographicCamera(Gdx.graphics.getWidth(), Gdx.graphics.getHeight()); camera.setToOrtho(false); camera.update(); renderer = new ShapeRenderer(); stage = new Stage(); stage.getBatch().setProjectionMatrix(camera.combined); skin = new Skin(Gdx.files.classpath("net/mostlyoriginal/plugin/profiler/skin/uiskin.json")); // setup some static config like colors etc SystemProfilerGUI.GRAPH_H_LINE.set(Color.ORANGE); gui = new SystemProfilerGUI(skin, "default"); gui.setResizeBorder(8); gui.show(stage); gui.setWidth(Gdx.graphics.getWidth()); }