mirror of
https://github.com/zeldaret/oot.git
synced 2025-01-16 13:36:57 +00:00
1ff2f0f849
* remove roompoly * git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "fd4d53a26" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "fd4d53a26" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596"
32 lines
No EOL
816 B
C++
32 lines
No EOL
816 B
C++
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include "../ZAnimation.h"
|
|
#include <tinyxml2.h>
|
|
#include "HLFileIntermediette.h"
|
|
|
|
/*
|
|
* An intermediette format for animations. Going to use XML.
|
|
* Goes from FBX->XML->C
|
|
* Note: At the moment this is a very direct representation of the output format.
|
|
* Optimally we can determine where the keyframes are and remove redundant information.
|
|
*/
|
|
|
|
class HLAnimationIntermediette
|
|
{
|
|
public:
|
|
int16_t frameCount;
|
|
int16_t limit;
|
|
int16_t limbCount;
|
|
std::vector<uint16_t> rotationValues;
|
|
std::vector<RotationIndex> rotationIndices;
|
|
|
|
HLAnimationIntermediette();
|
|
~HLAnimationIntermediette();
|
|
|
|
std::string OutputXML();
|
|
ZAnimation* ToZAnimation();
|
|
|
|
static HLAnimationIntermediette* FromXML(std::string xmlPath);
|
|
static HLAnimationIntermediette* FromZAnimation(ZAnimation* zAnim);
|
|
}; |