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?).