2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-04-05 01:51:25 +00:00
|
|
|
|
2019-09-28 02:53:03 +00:00
|
|
|
#include <utility>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "Runtime/CToken.hpp"
|
|
|
|
#include "Runtime/Character/CPoseAsTransforms.hpp"
|
|
|
|
|
|
|
|
#include <zeus/CUnitVector.hpp>
|
|
|
|
#include <zeus/CVector3f.hpp>
|
2017-08-21 05:46:59 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2018-11-05 06:12:53 +00:00
|
|
|
class CRandom16;
|
2019-09-28 02:53:03 +00:00
|
|
|
class CSkinRules;
|
2016-04-05 01:51:25 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CVertexMorphEffect {
|
|
|
|
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_;
|
|
|
|
|
2017-08-21 05:46:59 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +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;
|
|
|
|
void Reset(const zeus::CVector3f& dir, const zeus::CVector3f& pos, float duration) {}
|
|
|
|
void Update(float) {}
|
2016-04-05 01:51:25 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|