[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: boost bind/lambda
- From: Henk Boom <henk@...>
- Date: Wed, 5 Jan 2011 02:50:36 -0500
On 5 January 2011 00:43, Wesley Smith <email@example.com> wrote:
> On Tue, Jan 4, 2011 at 9:35 PM, beo wulf <firstname.lastname@example.org> wrote:
>> Goal: I want to luabind all of OpenGL.
>> Problem: glLightfv( int, int, GLfloat*)
> Is there a reason you're not using the existing OpenGL Lua modules?
> There are 2 I know of and both implement your goal:
> opengl module in LuaAV:
I'll add my own (generated) binding to the list:
They suit my purposes because they are very simple and self-contained.
For glLightfv and other such functions pointers can be given as either
lightuserdata or regular lua strings. This means that it's at least
possible (if not always entirely practical) to manipulate/create the
data from lua. (though I usually use memarray.c for actual array
They mostly support the earlier opengl APIs though, without
extensions. I'll probably regenerate them off of newer header files