Ive got this abstract class, DrawableObject that has just one func (of interest to this mail) which is
class DrawableObject
{
virtual void draw() = 0;
};
now, i have another class, that is GfxEngine and it has one func,
class GfxEngine
{
int registerObject(DrawableObject& dObject);
};
now here is my dilemma, if i keep the drawable object abstract, then i cannot pass it by value to the gfx engine func, since i cannot instantiate it, ie: the func signature cannot be int registerObject(DrawableObject dObject), and i do not want to pass it by reference, so... any ideas?
---
Cheers,
seth
<A. Helmy>
One life... LIVE it!