Sign in to follow this  
Xeqtr

Need help with starting Lua

Recommended Posts

Hi all. I'am newly with Lua. I need some examples that show how to load images using c++ and Lua in DirectX. P.S I'am googling a lot but no results. Please help me.

Share this post


Link to post
Share on other sites
Yes I can load image without Lua, but I want to create GUI with Lua. You can modify interface without recompiling program.

Share this post


Link to post
Share on other sites
Simplest way is to create a binding from your C++ program and then create the GUI code in Lua which will call or create C++ objects as needed.

Some binding libraries for Lua can be found here.

http://lua-users.org/wiki/BindingCodeToLua

I suggest using Luabind or mLuabind if you don't want to use the Boost libraries. The other issue is how to build a GUI engine in Lua, that's a more difficult question to answer.

Good Luck!

-ddn

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this