metaforce/Runtime/Graphics/CVertexMorphEffect.hpp

35 lines
925 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
#include "CToken.hpp"
#include "Character/CPoseAsTransforms.hpp"
namespace urde
{
class CSkinRules;
2018-11-05 06:12:53 +00:00
class CRandom16;
class CVertexMorphEffect
{
2018-11-05 06:12:53 +00:00
zeus::CUnitVector3f x0_;
float xc_ = 0.f;
float x10_ = 0.f;
float x14_ = 0.f;
float x18_ = 0.f;
float x1c_ = 0.f;
float x20_diagExtent;
CRandom16& x24_random;
std::vector<u32> x28_;
std::vector<u32> x38_;
public:
2018-11-05 06:12:53 +00:00
CVertexMorphEffect(const zeus::CUnitVector3f& v1, const zeus::CVector3f& v2,
float diagExtent, float f2, CRandom16& random);
void MorphVertices(std::vector<std::pair<zeus::CVector3f, zeus::CVector3f>>& vn,
const float* magnitudes, const TLockedToken<CSkinRules>& skinRules,
const CPoseAsTransforms& pose) const;
2018-11-12 04:21:36 +00:00
void Reset(const zeus::CVector3f& dir, const zeus::CVector3f& pos, float duration) {}
2018-09-07 23:51:07 +00:00
void Update(float) {}
};
}