private void render(Entity e) { Vector pos = e.getPosition(); // System.out.println(e.getId() + ": ( " + pos.getVar(0) + ", " + pos.getVar(1) + " )"); glLoadIdentity(); double x = pos.getVar(0); double y = (pos.getDimensions() > 1) ? pos.getVar(1) : 0; glTranslated(x, y, 100.0f); Color c = getColor(e); glColor3b((byte) c.getRed(), (byte) c.getGreen(), (byte) c.getBlue()); Sphere s = new Sphere(); s.draw((float) e.getRadius(), 20, 16); }