We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm attempting to get the pointer of C++ object created in Lua.
This is Lua script example:
objecttest = Image("file.png")
How I get this object pointer in C++:
Image* image = NULL; lua_getglobal(L, "objecttest"); if (lua_isuserdata(L, -1)) image = LuaIntf::CppObject::get<Image>(L, -1, false);
Is this the best way? Or is there any way to get this with LuaRef?
Thanks!
The text was updated successfully, but these errors were encountered:
LuaIntf::Lua::getGlobal<Image*>(L, "objecttest") would be fine
Sorry, something went wrong.
No branches or pull requests
I'm attempting to get the pointer of C++ object created in Lua.
This is Lua script example:
How I get this object pointer in C++:
Is this the best way? Or is there any way to get this with LuaRef?
Thanks!
The text was updated successfully, but these errors were encountered: