I want adding 3d format would be easy. Lets say, I want to support md2 now then later md3 then 3ds then so on.
I have a mesh manager
ResourceManager< Mesh > *m_meshManager; // Mesh manager.
Can anyone here help me on designing my Mesh class?
So far here's the code
Code:
class Mesh : public BoundingVolume
{
};
class AnimatedMesh : public Mesh
{
};
class AnimatedMeshMD2 : public AnimatedMesh, public Resource< AnimatedMeshMD2 >
{
};
class AnimatedMeshMD3 : public AnimatedMesh, public Resource< AnimatedMeshMD3 >
{
};
class AnimatedMesh3DS : public AnimatedMesh, public Resource< AnimatedMesh3DS >
{
};
Is there any cleaner way? I want to organize all of my mesh in one manager. I really suck in designing. So I hope this makes sense.
Sarah
EDIT: BTW, I found this kind of design in Multiplayer FPS in DirectX but in only supports .X files which uses bones.