Best way to integrate Luabind with ToLua++?
Posted: Fri Jun 13, 2008 05:54
I've played with both toLua++ and luabind a fair bit recently, and I've come to the conclusion that I prefer working with luabind, while Cegui uses tolua++. That's totally cool, to each their own.
It seems CEGUI has had a ton of work done to support lua fairly extensively, and rather than try and recreate all that effort in luabind (which would be an enormous undertaking), I'll just build on top of the work that exists.
The question I have is what is the best approach here? I'm building in Ogre, so I'm thinking I'll have to do the following:
1.) Grab the latest version of CEGUI from the SVN. Which version of lua is this built against?
2.) Rebuild CEGUI, and have my Ogre project use the rebuilt version, rather than the version that 'ships' with Ogre. Will this cause any known instabilities with the latest stable release of Ogre?
3.) Instantiate my lua_State somehow, and pass it around between all my tools. The question is, how is this best approached? Should I run all the CEGUI toLua++ stuff first, and simply retrieve the lua_State from that, then follow up with my luabind methods?
Any recommendations from people who have done this in the past? I hate to run into problems that have already been solved along the way.
Thanks.
It seems CEGUI has had a ton of work done to support lua fairly extensively, and rather than try and recreate all that effort in luabind (which would be an enormous undertaking), I'll just build on top of the work that exists.
The question I have is what is the best approach here? I'm building in Ogre, so I'm thinking I'll have to do the following:
1.) Grab the latest version of CEGUI from the SVN. Which version of lua is this built against?
2.) Rebuild CEGUI, and have my Ogre project use the rebuilt version, rather than the version that 'ships' with Ogre. Will this cause any known instabilities with the latest stable release of Ogre?
3.) Instantiate my lua_State somehow, and pass it around between all my tools. The question is, how is this best approached? Should I run all the CEGUI toLua++ stuff first, and simply retrieve the lua_State from that, then follow up with my luabind methods?
Any recommendations from people who have done this in the past? I hate to run into problems that have already been solved along the way.
Thanks.