Files

37 lines
854 B
C++

//
// Copyright(c) 2016-2017 benikabocha.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#ifndef SABA_MODEL_MMD_MMDMORPH_H
#define SABA_MODEL_MMD_MMDMORPH_H
#include <string>
namespace saba
{
class MMDMorph
{
public:
MMDMorph();
void SetName(const std::string& name) { m_name = name; }
const std::string& GetName() const { return m_name; }
void SetWeight(float weight) { m_weight = weight; }
float GetWeight() const { return m_weight; }
void SaveBaseAnimation() { m_saveAnimWeight = m_weight; }
void LoadBaseAnimation() { m_weight = m_saveAnimWeight; }
void ClearBaseAnimation() { m_saveAnimWeight = 0; }
float GetBaseAnimationWeight() const { return m_saveAnimWeight; }
private:
std::string m_name;
float m_weight;
float m_saveAnimWeight;
};
}
#endif // !SABA_MODEL_MMD_MMDMORPH_H