Re: Way to autogenerate C/C++ Headers?
- From: Arjen Markus <arjen.markus@xxxxxxxxxx>
- Date: Wed, 13 Feb 2008 23:50:23 -0800 (PST)
On 8 feb, 17:24, "James Van Buskirk" <not_va...@xxxxxxxxxxx> wrote:
Have you compared your work with that of others, such ashttp://www-stone.ch.cam.ac.uk/pub/f03gl/f03gl.zipwhere I think
the interfaces were automatically generated, or just going down
the list of Windows header files, starting with kernel32.h?
The former has nonconformities in that 0x789a gets turned into
Z'789a' instead of int(Z'789a', APPROPRIATE_TYPE) which could be
easily fixed, I suppose, but opportunities for combining
functionality into generics as described in the OpenGL standard
are missed and this might be more problematic. I don't think
even Intel does that in their interfaces.
I have enhanced my wrapper generator and have looked at the
gl.h header file that comes with the MSVC compiler. I noticed
a few annoying things, special keywords like WINGDIAPI and APIENTRY,
but also the use of a general void pointer instead of
function pointers.
At least, not being overly familiar with OpenGL, I assume that
types like PFNGLGETCOLORTABLEPARAMETERIVEXTPROC as defined in
that files are meant for user-defined functions that you
pass to the appropriate OpenGL functions.
In this case the header file does not give me _any_ clue
as to the character of the void pointer. And unless I am
overlooking something, no automatic procedure will be
able to supply the appropriate pointer type. I could of
course assume that any GLvoid * argument is actually a
pointer to an external procedure, but that information
must be supplied by the user of the wrapper generator.
Well, just another bump in the road ;).
Regards,
Arjen
.
- Follow-Ups:
- Re: Way to autogenerate C/C++ Headers?
- From: James Van Buskirk
- Re: Way to autogenerate C/C++ Headers?
- References:
- Way to autogenerate C/C++ Headers?
- From: nsdevelop12
- Re: Way to autogenerate C/C++ Headers?
- From: nsdevelop12
- Re: Way to autogenerate C/C++ Headers?
- From: Arjen Markus
- Re: Way to autogenerate C/C++ Headers?
- From: fj
- Re: Way to autogenerate C/C++ Headers?
- From: Damian
- Re: Way to autogenerate C/C++ Headers?
- From: Arjen Markus
- Re: Way to autogenerate C/C++ Headers?
- From: Arjen Markus
- Re: Way to autogenerate C/C++ Headers?
- From: James Van Buskirk
- Way to autogenerate C/C++ Headers?
- Prev by Date: Re: Questions about open-source fortran distributions
- Next by Date: Re: integer overflow
- Previous by thread: Re: Way to autogenerate C/C++ Headers?
- Next by thread: Re: Way to autogenerate C/C++ Headers?
- Index(es):
Relevant Pages
|