Re: 3.2 Core Profile on Mac OS X (Mavericks)
Posted by pdelirium on
URL: https://forum.jogamp.org/3-2-Core-Profile-on-Mac-OS-X-Mavericks-tp4032548p4032550.html
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:
AWT-GLCanvas[Realized false,
jogamp.opengl.GLFBODrawableImpl,
Factory jogamp.opengl.macosx.cgl.MacOSXCGLDrawableFactory@60f82f98,
handle 0x7f964bdf71b0,
Drawable size 300x278,
AWT pos 0/22, size 300x278,
visible true, displayable true, showing true,
AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type .awt, connection Display 69674880, unitID 0, awtDevice sun.awt.CGraphicsDevice@35f983a6, handle 0x0], idx 0],
chosen GLCaps[rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono , hw, GLProfile[GL3/GL3.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[GL3/GL3.hw], on-scr[.]],
CGLGraphicsConfig[dev=69674880,pixfmt=0],
encapsulated MacOSXCGLGraphicsConfiguration[DefaultGraphicsScreen[MacOSXGraphicsDevice[type .macosx, connection decon, unitID 0, handle 0x0, owner false, NullToolkitLock[]], idx 0],
chosen GLCaps[rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono , hw, GLProfile[GL3/GL3.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[GL3/GL3.hw], on-scr[.]]]]]
In my SWT version if I print the profile returned by getMaxProgrammableCore() it does say "GLProfile[GL3/GL3.hw]".