> ... maps multiple enum names to the same value, e.g.

> It's a bit of a nuisance for the GLTrace-like composable
> QGL pipeline I am working on (spits out valid GL code
> where possible, for convenient posting and testing).

The answer to knowing what the set of valid enumerated values for a given
parameter in an entry point is to parse the API specification files and build a
table (from which you do a reverse lookup). There have been a variety of tools
written over the years to parse the specification files and generate C code,
unfortunately these tools are not generally in the public domain :-(

John Dennis (Sharp Eye, Inc.)
Contract programming services specializing in 3D graphics
http://www.sharpeye.com
[EMAIL PROTECTED]

Reply via email to