🎉 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!
Passing an array to application function
I want to know if it is possible to pass a pointer to the beginning of a script defined array to an application function.
like:
//script
int[] x(50);
FillArray(x, 50);
//app
void FillArray(int*x, size s)
{
//code to fill array
}
Currently it is only possible if you override the array type you wish to receive. See the add-on/std_vector/stdvector.h for an example of how that can be done. You will then receive the array object just like a normal registered object.
I'm planning on implementing a specific interface for AngelScript arrays that will allow the application to manipulate script arrays without having to override the implementation.
I'm planning on implementing a specific interface for AngelScript arrays that will allow the application to manipulate script arrays without having to override the implementation.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement