protected void renderRange(IRenderContext target, double viewportX,
			double viewportY) {
		Set<Entity> renderableEntities = structure.queryRange(
				new TreeSet<Entity>(new Comparator<Entity>() {
					public int compare(Entity e0, Entity e1) {
						if (e0.getAABB().getMinZ() > e1.getAABB().getMinZ()) {
							return 1;
						}
						if (e0.getAABB().getMinZ() < e1.getAABB().getMinZ()) {
							return -1;
						}

						return e0.compareTo(e1);
					}
				}), new AABB(viewportX - 1, viewportY - 1, viewportX + 1,
						viewportY + 1));

		Iterator<Entity> it = renderableEntities.iterator();
		while (it.hasNext()) {
			it.next().render(target, viewportX, viewportY);
		}
	}