My Project
GeosetAnim.h
1 #pragma once
2 
3 #include "utils.h"
4 #include "ModelUtils.h"
5 #include <vector>
6 
7 using namespace std;
8 namespace ParaEngine
9 {
10 struct AnimAlpha{
11  long frameNum;
12  float alphaValue;
13 };
14 
15 
16 // KGAO
17 struct KGAO{
18 long chunkNum;
19 long lineType; //(0:don't interp;1:linear;2:hermite;3:bezier)
20 long flag; //0xFFFFFFFF
21 void* data; // it is acutally AnimAlpha*
22 public:
23  KGAO(){data=NULL;}
24  ~KGAO(){
25  if (data)
26  delete [] data;
27  }
28 };
29 
30 struct GEOA{
31  float unk0;
32  int type; //0:none 1:Drop Shadow 2:static color
33  float blue; //static Color
34  float green; //static Color
35  float red; //static Color
36  long GeosetID;
37 };
38 
44 {
45 public:
46  CGeosetAnim(void);
47  ~CGeosetAnim(void);
48 
49  void Read(TypePointer inP,int inSize);
50  float GetAnimAlpha(int geoID,const AnimInfo& animInfo);
51 
52 private:
53  int numGeosetAnim;
54  vector <GEOA*> geosetAnim;
55  vector <KGAO*> geosetAlpha;
56 
57 };
58 }
Definition: GeosetAnim.h:10
different physics engine has different winding order.
Definition: EventBinding.h:32
Definition: utils.h:13
Definition: GeosetAnim.h:17
Definition: GeosetAnim.h:30
For animating the alpha of bones.
Definition: GeosetAnim.h:43
Definition: ModelUtils.h:7