Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualAshaman73

Posted 25 October 2012 - 01:58 AM

You need to wrap you mesh in an other class, i.e. model, something like this:

class CAnimationData {}
class CMesh {}

class CModel {
  CMesh m_mesh;
  CAnimationData m_aniData;
  Matrix m_matrix;
  int m_currentAnimationFrame;
  Color m_color;
...
}
For each ingame instance of a model you need to create a CModel object, but mulitple CModels can sharea a single mesh, animation data etc.

#1Ashaman73

Posted 25 October 2012 - 01:57 AM

You need to wrap you mesh in an other class, i.e. model, something like this:

class CAnimationData {}
class CMesh {}

class Model {
  CMesh m_mesh;
  CAnimationData m_aniData;
  Matrix m_matrix;
  int m_currentAnimationFrame;
  Color m_color;
...


}

PARTNERS