class CModel : public Object
{
...
...
CMaterial m_material;
};
So, I know that my model will have a material.
Or I can go:
class CModel : public OBject
{
...
...
CMaterial *GetMaterial(int Index);
CMaterial *GetMaterial(int ID);
CMaterial *GetMaterial(char *Filename);
..
};
In second example I can retrieve materials from library, while in first I just access in in ordinary manner.
So, the question is, is it a good thing to implement libraries for materials, models, template objects etc or insert required classes where you need?(first example)
Thanks all.
" Do we need us? "
Ionware Productions - Games and Game Tools Development Edited by - HellRiZZer on February 17, 2002 5:28:34 PM