Re: Guile OpenGL bindings

2013-02-01 Thread Aleix Conchillo FlaquƩ
On Fri, Feb 1, 2013 at 4:16 AM, Andy Wingo wrote: > Hi Javier, > > Have you had time to think about GL bindings for Guile? I had been > meaning to do something about it for a long time, and finally got around > to a first hack last week. Daniel and I are working in this repo: > > https://gitor

Re: Guile OpenGL bindings

2013-02-01 Thread Daniel Hartwig
On 2 February 2013 04:56, wrote: > I hacked a little bit of code to generate C bindings for what is specified in > the glcorearb.h file. I also wrote a small script to extract the gl constants > and define them as scheme variables. > This is all *really* hacky stuff, but if somebody wants to have

Re: Guile OpenGL bindings

2013-02-01 Thread vimml
Hej, this all sounds really cool :-) I hacked a little bit of code to generate C bindings for what is specified in the glcorearb.h file. I also wrote a small script to extract the gl constants and define them as scheme variables. This is all *really* hacky stuff, but if somebody wants to have a l

Re: Guile OpenGL bindings

2013-02-01 Thread Mark H Weaver
Javier Sancho writes: > Someone mentioned performance issues when using FFI, too. That was me, and I regret emphasizing that. In a couple of years, when Guile has native compilation, it is likely that the FFI will be as fast as C wrappers, maybe even a bit faster. Anyway, as Knuth wrote, "We sh

Re: Guile OpenGL bindings

2013-02-01 Thread Daniel Hartwig
On 1 February 2013 21:02, Javier Sancho wrote: > Aleix Conchillo is also working with OpenGL and encountered a problem > with glutInit and char**. You can see it at > http://lists.gnu.org/archive/html/guile-devel/2012-07/msg00074.html Mark's suggestion is spot on, even points out one issue with m

Re: Guile OpenGL bindings

2013-02-01 Thread Javier Sancho
Andy Wingo wrote: > Hi Javier, Hi. > Have you had time to think about GL bindings for Guile? Not much. I've been a little busy with my first child :-) Just this week I'm back to thinking about it. > The idea is to use the FFI to make a low-level, complete interface, and > then as needed to make

Guile OpenGL bindings

2013-02-01 Thread Andy Wingo
Hi Javier, Have you had time to think about GL bindings for Guile? I had been meaning to do something about it for a long time, and finally got around to a first hack last week. Daniel and I are working in this repo: https://gitorious.org/guile-figl The idea is to use the FFI to make a low-l