|
Post by EmilHalim on Apr 10, 2016 12:25:25 GMT -5
Hi Tom,
Is there a way to Get a pointer to a function , so i am implement new animation system that need to get function pointer in basic code.
|
|
|
Post by Tom Mulgrew on Apr 11, 2016 2:51:56 GMT -5
Hi Tom, Is there a way to Get a pointer to a function , so i am implement new animation system that need to get function pointer in basic code. DJLinux has used the IB4GLCompiler in some of his plugins to effectively do this. Basically you pass in the name of the function to call from the BASIC program. Your plugin then generates some BASIC code to call that function, compiles it using the IB4GLCompiler object and executes it when you want to call the BASIC function. It's a bit ugly to setup, and passing parameters to functions could be interesting. But in theory it should be possible.
|
|