List of usage examples for com.badlogic.gdx ApplicationListener render
public void render();
From source file:es.eucm.ead.engine.EAdEngine.java
License:Open Source License
@Override public void render() { Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); stage.act(game.getSkippedMilliseconds()); game.act(game.getSkippedMilliseconds()); float x = Gdx.input.getX(); float y = Gdx.input.getY(); if (Math.abs(x - lastX) > 0.001f || Math.abs(y - lastY) > 0.001f) { lastX = x;//from www. j a va2 s. c om lastY = y; sceneMouseCoordinates.set(lastX, lastY); stage.getRoot().parentToLocalCoordinates(sceneMouseCoordinates); gameState.setValue(SystemFields.MOUSE_X, sceneMouseCoordinates.x); gameState.setValue(SystemFields.MOUSE_Y, sceneMouseCoordinates.y); gui.getScene().parentToLocalCoordinates(sceneMouseCoordinates); gameState.setValue(SystemFields.MOUSE_SCENE_X, sceneMouseCoordinates.x); gameState.setValue(SystemFields.MOUSE_SCENE_Y, sceneMouseCoordinates.y); } stage.draw(); game.doHook(Game.HOOK_AFTER_RENDER); for (ApplicationListener a : applicationListeners) { a.render(); } }