Re: 3.2 Core Profile on Mac OS X (Mavericks)

Posted by jmaasing on
URL: https://forum.jogamp.org/3-2-Core-Profile-on-Mac-OS-X-Mavericks-tp4032548p4032551.html

pdelirium wrote
Well, I tried a quick test using AWT instead of SWT:

        GLProfile glp = GLProfile.getMaxProgrammableCore(true);
        GLCapabilities caps = new GLCapabilities(glp);
        GLCanvas canvas = new GLCanvas(caps);

        Frame frame = new Frame("AWT Window Test");
        frame.setSize(300, 300);
        frame.add(canvas);
        frame.setVisible(true);
        System.out.println(canvas);

Strangely it doesn't actually open the window but does output:
I tried that code (the awt) on my MacBook Pro (Graphics  AMD Radeon HD 6770M 1024 MB)  and not only did the window show but it printed:

AWT-GLCanvas[Realized true,
        jogamp.opengl.GLFBODrawableImpl,
        Factory   jogamp.opengl.macosx.cgl.MacOSXCGLDrawableFactory@47f6473,
        handle    0x7ff7dbe55a30,
        Drawable size 300x278,
        AWT pos 0/22, size 300x278,
        visible true, displayable true, showing true,
        AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type .awt, connection Display 724065167, unitID 0, awtDevice sun.awt.CGraphicsDevice@15975490, handle 0x0], idx 1],
        chosen    GLCaps[rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono  , hw, GLProfile[GL4/GL4.hw], offscr[fbo]],
        requested GLCaps[rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono  , hw, GLProfile[GL4/GL4.hw], on-scr[.]],
        CGLGraphicsConfig[dev=724065167,pixfmt=0],
        encapsulated MacOSXCGLGraphicsConfiguration[DefaultGraphicsScreen[MacOSXGraphicsDevice[type .macosx, connection decon, unitID 0, handle 0x0, owner false, NullToolkitLock[]], idx 1],
        chosen    GLCaps[rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono  , hw, GLProfile[GL4/GL4.hw], offscr[fbo]],
        requested GLCaps[rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono  , hw, GLProfile[GL4/GL4.hw], on-scr[.]]]]]