So I've been using this game engine for quite some time, I can create a game using that with either the built-in events or I can use C++ but I've recently tried to embed Lua 5.3 to it, but I'm having problems on how to register a certain C++ class to Lua, example: In the game engine's C++, I would change the background color like this:
#include "GDCpp/RuntimeScene.h"
void changeBackground(RuntimeScene & scene)
{
scene.SetBackgroundColor(250,100,85)
}
But my problem is, how can I do that in Lua ? how can I register that function and class in Lua 5.3?