Quote: Engine->RegisterObjectMethod("SceneManager","void removeCamera(const string ∈ name)",asMETHOD(SceneManager,removeCamera),asCALL_THISCALL);obviously don't compile as compiler don't know which function i want to target.
🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Overloaded functions
Hello friends,
Just a little declaration Question:
I am pretty sure i have seen the answer somewhere but can find it back.
I have a class with an overloaded method:
removeCamera(string)
removeCamera(camera*)
How can i register one of this method with ASMETHOD:
Use the asMETHODPR() macro, that takes the parameter list and return type as well.
Example:
Example:
Engine->RegisterObjectMethod("SceneManager","void removeCamera(const string ∈ name)",asMETHODPR(SceneManager,removeCamera,(camera*),void),asCALL_THISCALL);
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement