Package javax.media.opengl

Examples of javax.media.opengl.GLProfile


  public JFrame getFrame() {
    return this.frame;
  }

  public Window() {
    GLProfile glp = GLProfile.getMinimum(true);
    GLCapabilities caps = new GLCapabilities(glp);
    caps.setDepthBits(24);
    this.canvas = new GLCanvas(caps);

    this.frame = new JFrame("Hexel");
View Full Code Here


    @Inject
    private Window(WindowSettings settings,
                  Provider<Scene> sceneProvider,
                  Provider<Controller> controllerProvider) {

        final GLProfile profile = GLProfile.getDefault();
        final GLCapabilities capabilities = new GLCapabilities(profile);
        logger.info(capabilities.toString());
        window = GLWindow.create(capabilities);

        window.setSize(settings.getWidth(), settings.getHeight());
View Full Code Here

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));
   
View Full Code Here

TOP

Related Classes of javax.media.opengl.GLProfile

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.