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.2 KiB
45 lines
1.2 KiB
//====== Copyright © 1996-2008, Valve Corporation, All rights reserved. =====//
|
|
//
|
|
// A list of DmeBoneWeight elements, replacing QC's $WeightList
|
|
//
|
|
//===========================================================================//
|
|
|
|
|
|
#ifndef DMEBONEMASK_H
|
|
#define DMEBONEMASK_H
|
|
|
|
|
|
#ifdef _WIN32
|
|
#pragma once
|
|
#endif
|
|
|
|
|
|
#include "datamodel/dmattributevar.h"
|
|
#include "mdlobjects/dmemdllist.h"
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Forward Declarations
|
|
//-----------------------------------------------------------------------------
|
|
class CDmeBoneWeight;
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// A class representing a list of bone weights
|
|
//-----------------------------------------------------------------------------
|
|
class CDmeBoneMask : public CDmeMdlList
|
|
{
|
|
DEFINE_ELEMENT( CDmeBoneMask, CDmeMdlList );
|
|
|
|
public:
|
|
virtual CDmAttribute *GetListAttr() { return m_BoneWeights.GetAttribute(); }
|
|
|
|
// Does a case-insensitive search for the specified bone name and returns the weight if it exists or 1.0f if it doesn't
|
|
float GetBoneWeight( const char *pszBoneName );
|
|
|
|
CDmaElementArray< CDmeBoneWeight > m_BoneWeights;
|
|
|
|
};
|
|
|
|
|
|
#endif // DMEBONEMASK_H
|