Package sprites

Source Code of sprites.Test

package sprites;

import javax.media.opengl.GLCapabilities;
import javax.media.opengl.GLProfile;

import sprites.base.SpritesListener;

import com.jogamp.newt.opengl.GLWindow;
import com.jogamp.opengl.util.Animator;

public class Test {

  public static void main(String... args){
//    GLProfile glp = GLProfile.getDefault(GLProfile.getDefaultDevice());
    GLProfile glp = GLProfile.get(GLProfile.GL4);
    GLCapabilities caps = new GLCapabilities(glp);
    GLWindow window = GLWindow.create(caps);
   
    SpritesListener listener = new SpritesListener(new Configuration(null, null, 800, 600, 800, 600));
   
    Animator animator = new Animator(window);
   
    window.setVisible(true);
    animator.start();
  }
 
}
TOP

Related Classes of sprites.Test

TOP
Copyright © 2018 www.massapi.com. 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.