private void animate () { delta = Gdx.graphics.getDeltaTime(); instance.transform.val[14] += delta * 4 * dir; if (Math.abs(instance.transform.val[14]) > 5) { dir *= -1; } }
@Override public boolean scrolled (int amount) { cam.fieldOfView -= -amount * Gdx.graphics.getDeltaTime() * 100; cam.update(); return true; }
@Override public void render () { long frameTime = TimeUtils.nanoTime(); float deltaTime = (frameTime - lastFrameTime) / 1000000000.0f; lastFrameTime = frameTime; Gdx.app.log("DeltaTimeTest", "delta: " + deltaTime + ", gdx delta: " + Gdx.graphics.getDeltaTime()); } }
public void render () { float delta = Math.max(0, Gdx.graphics.getDeltaTime() * deltaMultiplier.getValue()); update(delta); renderWorld(); }
@Override public void render () { Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); stage.act(Math.min(Gdx.graphics.getDeltaTime(), 1 / 30f)); stage.draw(); }
@Override protected void render (ModelBatch batch, Array<ModelInstance> instances) { for (ObjectMap.Entry<ModelInstance, AnimationController> e : animationControllers.entries()) e.value.update(Gdx.graphics.getDeltaTime()); batch.render(instances, environment); }
@Override public void render () { Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); ui.act(Gdx.graphics.getDeltaTime()); ui.draw(); }
@Override public void render () { Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); stage.act(Gdx.graphics.getDeltaTime()); stage.draw(); }
public void render () { Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); stage.act(Gdx.graphics.getDeltaTime()); stage.draw(); }
@Override public void render () { Gdx.gl.glClearColor(0.2f, 0.2f, 0.2f, 1); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); stage.act(Math.min(Gdx.graphics.getDeltaTime(), 1 / 30f)); stage.draw(); }
@Override public void render () { Gdx.gl.glClearColor(0.2f, 0.2f, 0.2f, 1); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); stage.act(Math.min(Gdx.graphics.getDeltaTime(), 1 / 30f)); stage.draw(); }
public void render () { Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); stage.act(Gdx.graphics.getDeltaTime()); stage.draw(); }
@Override public void render (Array<ModelInstance> instances) { dirLight.direction.rotate(dirLightRotAxis, Gdx.graphics.getDeltaTime() * 45f); super.render(null); for (ObjectMap.Entry<ModelInstance, AnimationController> e : animationControllers.entries()) e.value.update(Gdx.graphics.getDeltaTime()); shaderBatch.begin(cam); shaderBatch.render(instances, environment); shaderBatch.end(); }
@Override protected void render (ModelBatch batch, Array<ModelInstance> instances) { for (ObjectMap.Entry<ModelInstance, AnimationController> e : animationControllers.entries()) e.value.update(Gdx.graphics.getDeltaTime()); for (final ModelInstance instance : instances) renderSkeleton(instance); batch.render(instances); }
@Override public void render () { initialize(); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); stage.act(Gdx.graphics.getDeltaTime()); stage.draw(); } }
@Override public void update () { if (performanceCounter != null) { performanceCounter.tick(); performanceCounter.start(); } if (collisionWorld instanceof btDynamicsWorld) ((btDynamicsWorld)collisionWorld).stepSimulation(Gdx.graphics.getDeltaTime(), maxSubSteps, fixedTimeStep); if (performanceCounter != null) performanceCounter.stop(); }
public void render () { Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); drawn = 0; stage.act(Gdx.graphics.getDeltaTime()); stage.draw(); drawnLabel.setText("Drawn: " + drawn + "/" + count); drawnLabel.invalidateHierarchy(); }
@Override public void render () { counter = (counter + Gdx.graphics.getDeltaTime()) % 2.f; testAttribute1.value = Math.abs(1f - counter); testAttribute2.value = 1f - testAttribute1.value; camController.update(); Gdx.gl.glViewport(0, 0, Gdx.graphics.getBackBufferWidth(), Gdx.graphics.getBackBufferHeight()); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT); modelBatch.begin(cam); modelBatch.render(instances); modelBatch.end(); }
@Override public void begin (final Camera camera, final RenderContext context) { super.begin(camera, context); for (final DirectionalLight dirLight : directionalLights) dirLight.set(0, 0, 0, 0, -1, 0); for (final PointLight pointLight : pointLights) pointLight.set(0, 0, 0, 0, 0, 0, 0); for (final SpotLight spotLight : spotLights) spotLight.set(0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 1, 0); lightsSet = false; if (has(u_time)) set(u_time, time += Gdx.graphics.getDeltaTime()); }
public void render () { // System.out.println(meow.getValue()); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); stage.act(Gdx.graphics.getDeltaTime()); stage.draw(); stage.getBatch().begin(); patch.draw(stage.getBatch(), 300, 100, 126, 126); stage.getBatch().end(); }