Sign in to follow this  
Plasmarobo

ToLua++ Bindings Query

Recommended Posts

I've decided to bind Lua to my gamecore using ToLua++. I'm currently at the stage of designing the 'game classes' or game objects. The problem is, I don't want to expose the graphics objects to Lua at all (I want the graphics core untouchable, so to speak) but my games objects hold graphic objects. Now, I can see two possible roads: Create a container object which holds a pointer to a game and graphic object, linking them or Protect the graphic object and provide functions for access, and fail to include those functions in the pkg file. I would immediately go for the latter, but I am still a long way away from compiling, and I need to know if it would work (compile, run, etc) with a incomplete description of the class (or would that break the entire functionality?).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this