title: How can I register a C++ class and function in Lua 5.3
body: <p>So I've been using this <a href="http://compilgames.net/" rel="nofollow" title="game engine">game engine</a> 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:   </p>
  
  <pre><code>#include "GDCpp/RuntimeScene.h"
  
  void changeBackground(RuntimeScene &amp; scene)
  {
       scene.SetBackgroundColor(250,100,85)
  }
  </code></pre>
  
  <p>But my problem is, how can I do that in Lua ? how can I register that function and class in Lua 5.3?</p>