Original Post
I am programming in c++. I need to have a renderable class, containing a position and orientation, and a pointer to a model. My problem is this: display->draw(renderable r) does not have access to the private aspects of renderable. Nor does it have access to the data of model. How do I give display->draw() access to renderable wihtout giving the rest of my program access to renderable?