use of com.jogamp.opengl.GLCapabilities in project tdme by andreasdr.
the class TDMEParticleSystem method main.
/**
* @param args
*/
public static void main(String[] args) {
//
Console.println("TDMEParticleSystem " + VERSION);
Console.println("Programmed 2017 by Andreas Drewke, drewke.net.");
Console.println();
// no nifty logging
Logger.getLogger("").setLevel(Level.SEVERE);
// create GL caps
GLProfile glp = Engine.getProfile();
GLCapabilities caps = new GLCapabilities(glp);
Console.println(glp);
Console.println(caps);
// create GL window
GLWindow glWindow = GLWindow.create(caps);
glWindow.setTitle("TDMEParticleSystem " + VERSION);
// animator
FPSAnimator animator = new FPSAnimator(glWindow, 60);
// tdme particle system
TDMEParticleSystem tdmeLevelEditor = new TDMEParticleSystem(glWindow, animator);
// GL Window
glWindow.addWindowListener(tdmeLevelEditor);
glWindow.addGLEventListener(tdmeLevelEditor);
glWindow.setSize(800, 600);
glWindow.setVisible(true);
// start animator
animator.start();
}
use of com.jogamp.opengl.GLCapabilities in project tdme by andreasdr.
the class TDMEViewer method main.
/**
* @param args
*/
public static void main(String[] args) {
String modelFileName = null;
//
Console.println("TDMEViewer " + VERSION);
Console.println("Programmed 2014,...,2017 by Andreas Drewke, drewke.net.");
Console.println();
// no nifty logging
Logger.getLogger("").setLevel(Level.SEVERE);
// create GL caps
GLProfile glp = Engine.getProfile();
GLCapabilities caps = new GLCapabilities(glp);
Console.println(glp);
Console.println(caps);
// create GL window
GLWindow glWindow = GLWindow.create(caps);
glWindow.setTitle("TDMEViewer " + VERSION);
// animator
FPSAnimator animator = new FPSAnimator(glWindow, 60);
// tdme level editor
TDMEViewer tdmeLevelEditor = new TDMEViewer(glWindow, animator, modelFileName);
// GL Window
glWindow.addWindowListener(tdmeLevelEditor);
glWindow.addGLEventListener(tdmeLevelEditor);
glWindow.setSize(800, 600);
glWindow.setVisible(true);
// start animator
animator.start();
}
Aggregations