C++ Expose Already Existing Instance of Objects to a Scripting Language
Posted
by
user947871
on Stack Overflow
See other posts from Stack Overflow
or by user947871
Published on 2012-04-05T17:43:16Z
Indexed on
2012/11/28
5:05 UTC
Read the original article
Hit count: 151
So, I want to be able to modify already instanced C++ objects in a scripting language. I have been looking at Lua with LuaBind and Python with SWIG or Boost::Python, but all I see is how to make new instances of the objects, but I want to modify already existing ones. Example:
C++:
Player playerOne = new Player();
Scripting Language :
playerOne.Transform.x += 5;
Is this possible, and if so, wat would you suggest as a good Language/library to achieve this with?
© Stack Overflow or respective owner