-
September 5th, 2012, 05:51 AM
#1
"Mesh" should be an interface or an abstract class?
Code:
class IMesh
{
public:
virtual void update(float dt) = 0;
virtual void render() = 0;
};
or
class AMesh
{
public:
virtual void update(float dt) = 0;
virtual void render() = 0;
public:
D3DXFRAME *m_Root;
};
Any advices please?
Thanks
Jack
Last edited by lucky6969b; September 5th, 2012 at 05:53 AM.
Reason: Server instability
-
September 14th, 2012, 12:18 AM
#2
Re: "Mesh" should be an interface or an abstract class?
As long as both IMesh and AMesh contain at least one pure virtual function, both IMesh and AMesh are abstract classes.
In fact, which is your problem?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|