package anim;
import javax.media.opengl.GLCapabilities;
import javax.media.opengl.GLProfile;
import javax.media.opengl.awt.GLCanvas;
import listener.*;
import com.jogamp.opengl.util.FPSAnimator;
public class Anim extends GLCanvas{
private static final long serialVersionUID = 1L;
private Scene glListener;
final FPSAnimator animator;
public Anim() {
super(new GLCapabilities(GLProfile.getDefault()));
glListener = new Scene();
this.addKeyListener(new Clavier(glListener));
this.addGLEventListener(glListener);
animator = new FPSAnimator(this, 60);
animator.start();
}
}