Jump to content
  • Advertisement
Sign in to follow this  

Current state of binding scripts?

This topic is 2106 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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:


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!

Share this post

Link to post
Share on other sites

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.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!