Saturday, November 4, 2017

What is the recommended library for using Lua from C++?



I am currently planning how to integrate Lua scripting in my 2D Game Engine, and i would like to go straight to the most adequate solution for having C++ classes and objects exposed.


I've read this (if it helps you help): http://lua-users.org/wiki/BindingCodeToLua



If you have a better scripting language to recomend, go for it ;D


All help is welcome, i need to pickup the best solution to start implementing Thanks



Answer



If the primary quality of your scripting language is easy binding, try AngelScript. It can call registered functions directly without the need to write proxy functions, and it supports calling conventions of wide variety of compilers. The language itself is similar to c/c++, which may be a good or a bad thing, depending.


No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...