home *** CD-ROM | disk | FTP | other *** search
/ Xentax forum attachments archive / xentax.7z / 8090 / ModelEdit.7z / genrenobj_model.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-03-08  |  1.8 KB  |  61 lines

  1.  
  2. // This module defines the device independent model render objects...
  3.  
  4. #ifndef __GENRENOBJ_MODEL_H__
  5. #define __GENRENOBJ_MODEL_H__
  6.  
  7. #include "renderobject.h"
  8. #include "renderstyle.h"
  9.  
  10. // ----------------------------------------------------------------
  11. //  base class for things that models can render
  12. // ----------------------------------------------------------------
  13. class CDIModelDrawable : public CRenderObject
  14. {  
  15. public :
  16.     CDIModelDrawable()                            { }
  17.     virtual ~CDIModelDrawable()                    { }
  18.  
  19.     LightingMaterial        m_Material;
  20.     
  21.     virtual uint32            GetVertexCount()    { return 0; };
  22.     virtual uint32            GetPolyCount()        { return 0; };
  23.  
  24.     virtual bool Load(const char* szFileName)    { return false; }
  25.     virtual bool LoadMaterial(ILTStream & file)    { return false; } 
  26. };
  27.  
  28. //  ----------------------------------------------------------------
  29. //  Render Object Handle for RigidMesh
  30. //  ----------------------------------------------------------------
  31. class CDIRigidMesh : public CDIModelDrawable
  32. {
  33. public :
  34.     CDIRigidMesh()            { m_Type = eRigidMesh; }
  35.     virtual                    ~CDIRigidMesh() { }
  36. };
  37.  
  38. //  ----------------------------------------------------------------
  39. //  Render Object handle for Skeletally deformed mesh
  40. //  ----------------------------------------------------------------
  41. class CDISkelMesh  : public CDIModelDrawable
  42. {
  43. public :
  44.     CDISkelMesh()            { m_Type = eSkelMesh; }
  45.     virtual                    ~CDISkelMesh() { }
  46. };
  47.  
  48. //  ----------------------------------------------------------------
  49. //  Render Object handle for Skeletally deformed mesh
  50. //  ----------------------------------------------------------------
  51. class CDIVAMesh  : public CDIModelDrawable
  52. {
  53. public :
  54.     CDIVAMesh()                { m_Type = eVAMesh; }
  55.     virtual                    ~CDIVAMesh() { }
  56. };
  57.  
  58. #endif // __GENRENOBJ_MODEL_H__
  59.  
  60.  
  61.