Re: Re: For anyone interested in OpenGL
John Pallister <[email protected]> Tue, 13 May 2003 11:38:42 +1200
| Newsgroups | gmane.lisp.corman |
|---|---|
| Message-ID | <5.2.0.9.0.20030513113021.00ae75d8@goatboy> |
FWIW, I have a modified version of the C header parser that can do struct
member alignment, and a few other things (multidimensional arrays,
stripping a prefix from identifiers, sticking '+'s around constants etc.).
You're welcome to try that, if you like.
http://www.synchromesh.com/misc/parse-c-decls.lisp ("17 April '03" version)
The file also has a redefinition of ct:valid-callback-arg-type, that
accepts a pointer to anything as a valid callback argument.
Hope this helps,
John :^P
At 23:27 12/05/03 +0000, you wrote:
>One *huge* gotcha is that all structures in SDL.dll are integer-
>aligned. This means that any values you pull out of most of the
>strucs will be just plain wrong. The C->Lisp translator doesn't
>handle byte alignment, so 'int buffer;' has to be added where
>necessary to most structs. I have only done this to the structs
>related to handling events.
--
John Pallister
[email protected]
2 days, 13 hours until _The Matrix Reloaded_ premieres...
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/BVVfoB/hP.FAA/uetFAA/SyjtlB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
[email protected]
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/