Re: OpenGL 3.2 in OS X 10.7
Posted by Sven Gothel on Jul 22, 2011; 3:29am
URL: https://forum.jogamp.org/OpenGL-3-2-in-OS-X-10-7-tp3186330p3190297.html
On Friday, July 22, 2011 04:54:49 AM Wade Walker [via jogamp] wrote:
>
> It looks like the class MacOSXCGLDrawableFactory is missing some code that
> would be required to set up a shared context and query the profiles. You
> might compare it to WindowsWGLDrawableFactory and X11GLXDrawableFactory to
> see how it differs from platforms that support GL3 and GL4 now.
In the EGL/X11/WGL GLContextImpl specialization,
we have a new way of ctx creation using the new ARB method
of passing some attributes (version, debug, ..):
long abstract GLContextImpl.createContextARBImpl(..)
it's documented in GLContextImpl.
Problem: On all platforms, this is done at ctx creation. On OSX,
AFAIK it's done via the drawable / ctx binding. So a bit adaptation might be required.
If impl. properly in MacOSXCGLContext,
all functionality would be available, i.e. upfront query
of avail. versions and capabilities.
~Sven