Login  Register

Re: Bindless vertex array

Posted by elect on Jun 30, 2015; 5:38pm
URL: https://forum.jogamp.org/Bindless-vertex-array-tp4034343p4034784.html

gouessej wrote
If you really want to compare your stuff to something native without Java, don't use NewtCanvasAWT, just GLWindow.
I got rid of all awt

protected final void initGL() {

        GLProfile gLProfile = GLProfile.getDefault();

        GLCapabilities gLCapabilities = new GLCapabilities(gLProfile);

        glWindow = GLWindow.create(gLCapabilities);

        glWindow.setSize(1280, 720);

        glWindow.addGLEventListener(this);
       
        animator = new Animator(glWindow);
        animator.setModeBits(false, AnimatorBase.DEFAULT_FRAMES_PER_INTERVAL);
        animator.setExclusiveContext(true);
        animator.start();
       
        glWindow.setVisible(true);
    }

Anything else?

Ps: whenever I close it, on the dispose I call

        animator.stop();
        glWindow.destroy();

But I get this error anyway

Thread[main-Display-.x11_:0-1-EDT-1,5,main]: Warning: Default-EDT about (2) to stop, task executed. Remaining tasks: 1 - Thread[main-Display-.x11_:0-1-EDT-1,5,main]
X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 2/2, reusable (open, marked uncloseable): 0, pending (open in creation order): 2)
X11Util: Open X11 Display Connections: 2
X11Util: Open[0]: NamedX11Display[:0, 0x7fca400019a0, refCount 1, unCloseable false]
X11Util: Open[1]: NamedX11Display[:0, 0x7fca40017d40, refCount 1, unCloseable false]