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.
 
 
 
 
 
 

53 lines
1.5 KiB

//====== Copyright © 1996-2004, Valve Corporation, All rights reserved. =======
//
// The morph operator class - sets morph target weights on meshes
//
//=============================================================================
#ifndef DMEMORPHOPERATOR_H
#define DMEMORPHOPERATOR_H
#ifdef _WIN32
#pragma once
#endif
#include "datamodel/dmelement.h"
#include "datamodel/dmattribute.h"
#include "datamodel/dmattributevar.h"
#include "movieobjects/dmeoperator.h"
//-----------------------------------------------------------------------------
// Forward declarations
//-----------------------------------------------------------------------------
class CDmeMesh;
//-----------------------------------------------------------------------------
// A class representing a camera
//-----------------------------------------------------------------------------
class CDmeMorphOperator : public CDmeOperator
{
DEFINE_ELEMENT( CDmeMorphOperator, CDmeOperator );
public:
virtual void Operate();
// need this until we have the EditApply message queue
void OnAttributeChanged( CDmAttribute *pAttribute );
virtual void GetInputAttributes ( CUtlVector< CDmAttribute * > &attrs );
virtual void GetOutputAttributes( CUtlVector< CDmAttribute * > &attrs );
// accessors
uint NumDeltaStateWeights();
CDmElement *GetDeltaStateWeight( uint i );
CDmeMesh *GetMesh();
protected:
CDmaElement< CDmeMesh > m_mesh;
CDmaElementArray< CDmElement > m_deltaStateWeights;
CDmaString m_baseStateName;
};
#endif // DMEMORPHOPERATOR_H