🎉 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!

Current state of binding scripts?

Started by
0 comments, last by WitchLord 10 years, 5 months ago

Hello, I am interested in trying out Angelscript in a game engine. I have been using Lua but became frustrated with the poor C++ integration.

I have existing C++ classes I want my Angelscript code to drive, and I would like to use some kind of automated script to perform the "registration" of classes and functions. I think if I spend any time writing registration code for individual classes/functions by hand I'll mess it up. What I would like is to just feed copies of my header files to a script and have it spit out a source file with all the registration calls.

Looking around on Google for a script like this, the only thing I find is this somewhat mysterious Google Code repo:

https://code.google.com/p/angelscript-cpp-interface-generator/source/checkout

This seems to sort of work, but it has not been updated since 2010 and when I ran it experimentally it produced code that didn't look valid, for example:

r = engine->RegisterObjectProperty("", "bool useColor; GLint texture; unsigned int baseColor", offsetof(, baseColor)); assert(r>=0);

I'm willing to extend/bugfix a binding script, but if I'm going to do this I'm not sure whether this is the best script to start from.

Is there a "recommended" automated registration-code generator for Angelscript? Thanks!

Advertisement

There are a couple of other prototypes for an automatic binding generators here: http://www.gamedev.net/topic/629000-binder-code-generation-using-libclang-a-preprocessor-for-c-syntactic-sugar/ and http://www.gamedev.net/topic/635485-try-angelscript-live/

Unfortunately neither these or the one you already found are actively worked upon, and as such cannot be considered more than just prototypes.

I do not know of any other binding generator that is publicly available.

In the forum thread here I wrote some recommendations for how I think an automatic binding generator should work. These recommendations still hold true.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement