Hi Janko,
This is probably possible, though you'll have to force the
registration of the functions in your C code to the Neko VM. Take a
look at the xcross lib in haXeLib which includes the standard
libraries into a single exe. This should shed some light on the topic.
When you're successful wrapping PTK, are you going to submit it to the
community? It would be interesting to have another decent 2d library
available for Neko.
Regards,
Lee
Quoting janko metelko <[EMAIL PROTECTED]>:
Hi,
I am trying to embedd nekovm with 2d game library (PTK) to make a neko
scriptable game engine. It wors but I have one question..
Is this possible to do (or even normal ussual)?
the engine starts and opens the screen, then it loads the neko .n file with
script and calls loadResources function in neko.. that function function
calls back the functions for example loadImage("img.png"); that is defined
back in C and which loads the images in it's array or LList.
(I saw how neko calls functions in native dlls via loadprimitive but that is
probably a different thing)
thanks best regards,
Janko
--
Neko : One VM to run them all
(http://nekovm.org)