Jump to content
  • Advertisement
Sign in to follow this  
Xeqtr

Need help with starting Lua

This topic is 3340 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
Your question is far too broad.

Can you load an image in C++ with DirectX without Lua?

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!