Package com.sun.opengl.util

Examples of com.sun.opengl.util.Animator


    // 3. clear the background to black
    gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
    gl.glClear(GL.GL_COLOR_BUFFER_BIT);

    // 4. drive the display() in a loop
    animator = new Animator(canvas);
    animator.start(); // start animator thread
   
    // display OpenGL and graphics system information
    System.out.println("INIT GL IS: " + gl.getClass().getName());
    System.err.println(drawable.getChosenGLCapabilities());
View Full Code Here


    public SimpleGLCanvas() {
        initComponents();
        setTitle("Simple JOGL Application");

        canvas.addGLEventListener(new GLRenderer());
        animator = new Animator(canvas);

        // This is a workaround for the GLCanvas not adjusting its size, when the frame is resized.
        canvas.setMinimumSize(new Dimension());        
       
        this.addWindowListener(new WindowAdapter() {
View Full Code Here

          // TODO Auto-generated catch block
          e.printStackTrace();
        }

    System.out.println("Alpha loaded!");
    animator = new Animator(glDrawable);
    animator.start();
  }
View Full Code Here

    });
     
    /**
     * Add animator
     */
      animator = new Animator(canvas);
    this.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent e) {
        // Run this on another thread than the AWT event queue to
        // make sure the call to Animator.stop() completes before
        // exiting
View Full Code Here

TOP

Related Classes of com.sun.opengl.util.Animator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.