rodecomp/Source/Contents/Models/ModelAnimation.h
ragnarok-clanker be2cf07140 Decompile 4 functions in Source/Contents/Models/ModelAnimation.cpp, Source/Contents/Models/ModelAnimation.h, ...
Batch #14054 by Yommy: 4 byte-identical, 0 confirmed by peer review.

- fn_01725 LegacyScaleTrack::Sample: byte-identical
- fn_17465 C3dNodeV1::C3dNodeV1: byte-identical (already on main)
- fn_17466 C3dNodeV2::C3dNodeV2: byte-identical (already on main)
- fn_17507 C3dNodeV1::Animate: byte-identical

Merged automatically: every function is byte-identical to the original.
2026-11-07 04:50:11 +00:00

47 lines
1.5 KiB
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_MODELS_MODELANIMATION_H
#define RAGNAROK_SOURCE_CONTENTS_MODELS_MODELANIMATION_H
#include "Resource/Models/ModelResource.h"
#include "Utility/Math/AffineMatrix.h"
#include <vector>
class LegacyPositionTrack : public std::vector<ModelPositionKey> {
public:
using std::vector<ModelPositionKey>::operator=;
void Sample(int frame, matrix& output) const;
};
class LegacyRotationTrack : public std::vector<ModelRotationKey> {
public:
using std::vector<ModelRotationKey>::operator=;
void Sample(int frame, matrix& output) const;
};
class LegacyScaleTrack : public std::vector<ModelScaleKey> {
public:
using std::vector<ModelScaleKey>::operator=;
void Sample(int frame, matrix& output) const;
};
class ModelScaleTrack : public std::vector<ModelRotationKey> {
public:
using std::vector<ModelRotationKey>::operator=;
void Sample(float frame, matrix& output) const;
};
class ModelPositionTrack : public std::vector<ModelRotationKey> {
public:
using std::vector<ModelRotationKey>::operator=;
void Sample(float frame, const matrix& base, matrix& output) const;
};
class ModelRotationTrack : public std::vector<ModelRotationKey> {
public:
using std::vector<ModelRotationKey>::operator=;
void Sample(float frame, const matrix& base, matrix& output) const;
};
void QuaternionMatrix(const ModelRotationKey& key, matrix& output);
void InterpolateModelRotation(float amount, const ModelRotationKey& first, const ModelRotationKey& second, int spins, ModelRotationKey& output);
#endif