On Tue, Nov 30, 1999 at 11:36:20AM -0800, Bernd Kreimeier wrote:
> Is there any chance for a separation of enum/data types from
> function prototypes, header-wise? E.g. a GL/gltypes.h and
> GL/glfunc.h, both of which just included by GL/gl.h?

    If we were to do this, rather than proliferate headers, I'd prefer
to stick a #ifndef NEED_GL_PROTOTYPES around the prototypes and let the
app indicate it doesn't want them. But I'm not sure what it would
accomplish when the vendor gl.h is fixed on Windows and MacOS - unless
you're planning to have your own private gl.h on those platforms.

> I see a log/trace package (with glfuncp.h generated from
> GL/glfunc.h e.g. by script) as a nice generic tool. Of course,
> we could dynamically generate gltypes.h, too :-/.

    In fact the enums and prototypes *are* dynamically generated in our
internal source tree, from ".spec" files describing the enumerants and
functions and various attributes thereof, such as GLX opcodes and
dispatch slot offsets. When we update the open source GLX to 1.3
(shortly), the generator scripts will be included.

    Jon
    __@/

Reply via email to