blob: 25766476afc8f711e9f15ebade234bfc7147ab08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
#ifndef _animchnk_hpp
#define _animchnk_hpp
#include "chunk.hpp"
#include "chnktype.hpp"
struct TEXANIM;
class Animation_Chunk : public Chunk
{
public :
Animation_Chunk(Chunk_With_Children* parent,const char*,size_t);
Animation_Chunk(Chunk_With_Children* parent);
~Animation_Chunk();
virtual BOOL output_chunk (HANDLE &hand);
virtual size_t size_chunk();
virtual void fill_data_block(char* data_start);
int NumPolys; //with animation in this shape
TEXANIM** AnimList;
};
#define txa_flag_nointerptofirst 0x80000000
struct FrameList
{
~FrameList();
FrameList(TEXANIM*);
FrameList(TEXANIM* p,FrameList* fl,int* conv);
int Speed;
int Flags;
int NumFrames;
int CurFrame;
TEXANIM* parent;
int* Textures;
int* UVCoords;
int spare1,spare2;
};
#define AnimFlag_NotPlaying 0x00000001
struct TEXANIM
{
TEXANIM(TEXANIM*);
TEXANIM();
~TEXANIM();
int shape;
int poly;
int NumVerts;
int ID;
int NumSeq;//number of sequences
int CurSeq;
int AnimFlags;
int Identifier;
FrameList** Seq;
void CopyAnimData(TEXANIM* ta,int* conv);
};
#endif
|