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.

47 lines
1.2 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Dme version of a list of lods
  4. //
  5. //===========================================================================//
  6. #ifndef DMELODLIST_H
  7. #define DMELODLIST_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "mdlobjects/dmebodypart.h"
  12. //-----------------------------------------------------------------------------
  13. // Forward Declarations
  14. //-----------------------------------------------------------------------------
  15. class CDmeLOD;
  16. //-----------------------------------------------------------------------------
  17. // A class representing a list of LODs
  18. //-----------------------------------------------------------------------------
  19. class CDmeLODList : public CDmeBodyPart
  20. {
  21. DEFINE_ELEMENT( CDmeLODList, CDmeBodyPart );
  22. public:
  23. // Returns the number of LODs in this body part, can be 0
  24. virtual int LODCount() const;
  25. // Returns the root LOD. This is the one with the switch metric 0
  26. virtual CDmeLOD *GetRootLOD();
  27. // Returns the shadow LOD
  28. virtual CDmeLOD *GetShadowLOD();
  29. // NOTE: It may be possible to eliminate the skeleton here
  30. // and assume the LOD always uses the root skeleton.
  31. CDmaElementArray< CDmeLOD > m_LODs;
  32. };
  33. #endif // DMELODLIST_H