Utility to query current OpenGL state with all glGet*() constants
The GlGetQuerier is a small utility to query the current OpenGL state with all constants that are listed in http://www.opengl.org/sdk/docs/man/xhtml/glGet.xml. Returned results are printed to the console. Writing them to a file is optional. A packaged version (from 2008-10-29) of glGet.xml is used to compile a list of constant names. Values that require glGetString (not in glGet.xml) are also queried. The output is sorted alphabetically by the constants' names.
GlGetQuerier is written in Java 5 and uses the LWJGL 2 for OpenGL access.
It can be used as a stand-alone application (via main() or for debugging in existing applications (via runQueries(...)). In the latter case, the resulting list is available as a String to integrate into existing loggin mechanisms.
Alternatively, you can get a list of constants with getConstants(), to process them in your own application. GlGetQuerier can be used to determine the OpenGL capabilities of a specific platform, to inspect the current state for debugging or simply to satisfy your curiosity.
Download
Source code: GlGetQuerier_src_2009-03-18.zip ~ 25kb
Javadoc: GlGetQuerier_javadoc_2009-03-18.zip ~ 50kb
Binary (Win, Linux, Mac, Solaris): GlGetQuerier_bin_2009-03-18.zip ~ 1,4 mb
All-in-one: GlGetQuerier_all_2009-03-18.zip ~ 1,4 mb
Sample output file: GlGetQuerierOutput.txt ~ 15kb