Re: [Pharo-users] Embedding pharo in C++
Hi Roland, the function vm_main_with_parameters() starts the vm and it will not return until the image finishes. In my example, only when the SDL window is closed, the quit primitive is executed and the function ends. To do a nicer POC we need to make modifications in the image, so it handles keeping the image open. On Wed, Jan 22, 2020 at 7:08 PM Roland Plüss via Pharo-users <pharo-users@lists.pharo.org> wrote:
I gave the C-Example repository a try but I don't fully understand how it works. Does the vm_main_with_parameters() block until the VM is quit or some function it runs? From looking at the source code I'm not sure what it does.
On 1/22/20 12:17 PM, Pierce Ng wrote:
On Wed, Jan 22, 2020 at 11:04:07AM +0100, tesonep@gmail.com wrote:
nice to hear about the Pascal experiment, I've published my code on GH and sent an announcement to pharo-dev.
Repo is https://github.com/PierceNg/pharo-vm-embedded-pascal
Pierce
-- Yours sincerely Plüss Roland
Leader and Head Programmer - Game: Epsylon ( http://www.indiedb.com/games/epsylon ) - Game Engine: Drag[en]gine ( http://www.indiedb.com/engines/dragengine , http://dragengine.rptd.ch/wiki ) - As well as various Blender export scripts und game tools
-- Pablo Tesone. tesonep@gmail.com
The dragon has been unleashed. The game engine is now available to the public. See https://www.indiedb.com/engines/dragengine for more information. Right now the Smalltalk Script Module is a proof of concept with the GNU Smalltalk. The idea is to change this to use Pharo and bringing it up to the scope of the DragonScript module. The source code repository is at https://github.com/LordOfDragons/dragengine . I'll add a branch "feature-pharo" to contain all this work. Once Pharo is up to be used properly for embedding (or to help getting there) this branch can be used. Since it is right now in a proof-of-concept state I think it would be not a bad idea to experiment with Pharo embedding there when not yet too many engine relate complications are present. -- Yours sincerely Plüss Roland Leader and Head Programmer - Game: Epsylon ( http://www.indiedb.com/games/epsylon ) - Game Engine: Drag[en]gine ( http://www.indiedb.com/engines/dragengine , http://dragengine.rptd.ch/wiki ) - As well as various Blender export scripts und game tools
participants (2)
-
Roland Plüss -
tesonep@gmail.com