Bug 355 - Need a way to get a list of GLCapabilities without a drawing surface.
Summary: Need a way to get a list of GLCapabilities without a drawing surface.
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All all
: P3 enhancement
Assignee: Sven Gothel
Depends on:
Reported: 2008-05-07 08:27 CEST by Sven Gothel
Modified: 2015-09-27 03:14 CEST (History)
0 users

See Also:
SCM Refs:
Workaround: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2010-03-24 07:51:26 CET

---- Reported by kenchapin 2008-05-07 08:27:09 ----

I would like to be able to get a list of GLCapabilities objects that represents
 all of the pixel formats or frame buffer configurations that are available in
the underlying OpenGL renderer and then know what kind of drawing surface a
particular GLCapabilities object is applicable for.  There should be a mask of
drawable types added to the GLCapabilities class.

This is analogous to how Windows OpenGL works by either using
DescribePixelFormat() or the WGL_ARB_pixel_format extension querying routines.

This is also analogous to how GLX works in an X11 environment by using the
glXGetFBConfigs request.

Currently there is no way in Jogl to see all of the possible attribute
combinations that can be used with a Pbuffer.  There is no way of guaranteeing
the successful creation of a Pbuffer with a GLCapabilities object filled with
desirable attributes.  There may be no Pbuffer available with those exact

Unfortunately I don't know if it is possible to implement the same functionality
in OSX since I have no experience on that platform.

--- Bug imported by sgothel@jausoft.com 2010-03-24 07:51 EDT  ---

This bug was previously known as _bug_ 355 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=355
Comment 1 Sven Gothel 2010-11-19 01:31:01 CET
we could now add a getAllCapabilities(AbstractGraphicsDevice) in GLProfile
utilizing the shared drawable.