private int displayList;
public SolidBallGO(Ball ball, Material material, GraphicsObjectsManager goManager) {
super(ball, material, goManager);
Sphere sphere = new Sphere();
float radius = ball.getRadius();
// use more polygons for larger balls
int res = (int) (7 + 15.0f * radius);
// create display list
displayList = GL11.glGenLists(1);
GL11.glNewList(displayList, GL11.GL_COMPILE);
sphere.draw(radius, res, res);
GL11.glEndList();
}