summaryrefslogblamecommitdiffstats
path: root/src/animation/AnimBlendHierarchy.h
blob: b34ae2103da9c22ee94b4ec12eb98a3982abe5f5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                      

                                                  






                                             
                                           



                                          
                                                     
  
 
                                        
#pragma once

#include "templates.h"

class CAnimBlendSequence;

// A collection of sequences
class CAnimBlendHierarchy
{
public:
	char name[24];
	CAnimBlendSequence *sequences;
	int16 numSequences;
	bool compressed;	// not really used
	bool compressed2;	// not really used
	float totalLength;
	CLink<CAnimBlendHierarchy*> *linkPtr;

	CAnimBlendHierarchy(void);
	void Shutdown(void);
	void SetName(char *name);
	void CalcTotalTime(void);
	void CalcTotalTimeCompressed(void);
	void RemoveQuaternionFlips(void);
	void RemoveAnimSequences(void);
	void Uncompress(void);
	void RemoveUncompressedData(void);
	bool IsCompressed() { return !!compressed; };
};

VALIDATE_SIZE(CAnimBlendHierarchy, 0x28);