/** Dibuja en pantalla, lo que se cargo previamente en el metodo cargar, de esta clase. */ public void Render() { GL10 gl = Gdx.gl10; gl.glClear(GL10.GL_COLOR_BUFFER_BIT); gl.glEnable(GL10.GL_BLEND); gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA); for (int i = 0; i < LAYERS; i++) { SpriteCache cache = caches[i]; cache.setProjectionMatrix(cam.combined); cache.begin(); for (int j = 0; j < TILES_PER_LAYER; j += BLOCK_TILES) { cache.draw(layers[i], j, BLOCK_TILES); } cache.end(); } if (System.nanoTime() - startTime >= 1000000000) { // Gdx.app.log("TileTest", "fps: " + Gdx.graphics.getFramesPerSecond()); startTime = System.nanoTime(); } }