Re: [racket] Bootstrapping an FFI

2012-08-11 Thread Jay McCarthy
Regarding a more recent version of OpenGL, there's RacketGL (on planet) by Stephan that is automatically generated from Khronos' spec files and is "perfect". Jay On Sat, Aug 11, 2012 at 8:01 AM, Ian Tegebo wrote: > Wow, looks great! > > I'm still looking at FFIs for both Graphviz and a more rece

Re: [racket] Bootstrapping an FFI

2012-08-11 Thread Ian Tegebo
Wow, looks great! I'm still looking at FFIs for both Graphviz and a more recent version of OpenGL, so I'd appreciate anyone's tips/code for translating C. On Sat, Aug 11, 2012 at 5:29 AM, Peter Braun wrote: > Hi Ian, > > unfortunately I can't help you with automatic code generation but i've > wr

Re: [racket] Bootstrapping an FFI

2012-08-11 Thread Peter Braun
Hi Ian, unfortunately I can't help you with automatic code generation but i've written a binding for libSDL (and libSDL_image) manually. It's not complete but covers quite a usable part of SDL (video, events, joystick and some more). If it helps you in any way, feel free to use / fork the cod

[racket] Bootstrapping an FFI

2012-08-10 Thread Ian Tegebo
I'm playing around with an FFI for SDL. Rather than slog through all the headers by hand, I went looking for some code that may do a bit of the parsing and translation. On PLaneT, I found dherman's c.plt: http://planet.racket-lang.org/display.ss?package=c.plt&owner=dherman I got stuck when it a