So recently, I 've implemented lua scripting in my C++ engine, and I made a lua wrapper for pretty much every classes I had (Window, InputHandler, Mesh, Shader, etc...). But now that I'm thinking of it, is it good that I wrapped all my C++ classes into lua classes ? Shouldn't I use lua scripting for more specific things, and write code like window managing in C++ ? Here is a lua sample :
local input = alpha.InputHandler()
local window = alpha.Window(100, 100, 1000, 900, "Hello Gangnam Style !", false, false)
function main()
repeat
window:Clear(0.5, 0.5, 0.5, 1)
window:SwapBuffers()
input:Update()
until input:CloseRequested() == true
end
main()