private FlatRenderer flatRenderer = null;
private JPanel panel = null;
private Image lastImage;
public OpenGLRenderer() {
GLCapabilities capbilities = new GLCapabilities();
capbilities.setDoubleBuffered(true);
capbilities.setAlphaBits(8);
capbilities.setRedBits(8);
capbilities.setGreenBits(8);
capbilities.setBlueBits(8);
System.out.println("OpenGL Renderer: cons");
canvas = GLDrawableFactory.getFactory().createGLCanvas(capbilities);
flatRenderer = new FlatRenderer();
//flatRenderer.init(canvas);
addRenderEventListener(flatRenderer);