Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Body part base class
  4. //
  5. // Body parts can be either:
  6. //
  7. // * A list of LODs (DmeLODList)
  8. // * empty (DmeBlankBodyPart)
  9. //
  10. //===========================================================================//
  11. #ifndef DMEBODYPART_H
  12. #define DMEBODYPART_H
  13. #ifdef _WIN32
  14. #pragma once
  15. #endif
  16. #include "datamodel/dmelement.h"
  17. #include "datamodel/dmattributevar.h"
  18. #include "mdlobjects/dmelod.h"
  19. //-----------------------------------------------------------------------------
  20. // A generic body part
  21. //-----------------------------------------------------------------------------
  22. class CDmeBodyPart : public CDmElement
  23. {
  24. DEFINE_ELEMENT( CDmeBodyPart, CDmElement );
  25. public:
  26. // Returns the number of LODs in this body part, can be 0
  27. virtual int LODCount() const { return 0; }
  28. // Returns the root LOD. This is the one with the switch metric 0
  29. virtual CDmeLOD *GetRootLOD() { return NULL; }
  30. // Returns the shadow LOD
  31. virtual CDmeLOD *GetShadowLOD() { return NULL; }
  32. };
  33. #endif // DMEBODYPART_H