Counter Strike : Global Offensive Source Code
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.

44 lines
1.2 KiB

  1. //====== Copyright � 1996-2008, Valve Corporation, All rights reserved. =====//
  2. //
  3. // A list of DmeBoneWeight elements, replacing QC's $WeightList
  4. //
  5. //===========================================================================//
  6. #ifndef DMEBONEMASK_H
  7. #define DMEBONEMASK_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "datamodel/dmattributevar.h"
  12. #include "mdlobjects/dmemdllist.h"
  13. //-----------------------------------------------------------------------------
  14. // Forward Declarations
  15. //-----------------------------------------------------------------------------
  16. class CDmeBoneWeight;
  17. //-----------------------------------------------------------------------------
  18. // A class representing a list of bone weights
  19. //-----------------------------------------------------------------------------
  20. class CDmeBoneMask : public CDmeMdlList
  21. {
  22. DEFINE_ELEMENT( CDmeBoneMask, CDmeMdlList );
  23. public:
  24. virtual CDmAttribute *GetListAttr() { return m_BoneWeights.GetAttribute(); }
  25. // Does a case-insensitive search for the specified bone name and returns the weight if it exists or 1.0f if it doesn't
  26. float GetBoneWeight( const char *pszBoneName );
  27. CDmaElementArray< CDmeBoneWeight > m_BoneWeights;
  28. };
  29. #endif // DMEBONEMASK_H