blob: 1690ab5ef7f6778cfa1761d198b4f738535bc718 (
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
|
#ifndef T2DLL_T2FIREWORK_H
#define T2DLL_T2FIREWORK_H
#include "../common.h"
struct FIREWORK_STARINFO {
float m0;
float m4;
float m8;
float mC;
float m10;
float m14;
float m18;
float m1C;
unsigned short mFlags;
float m24;
};
class AFX_CLASS_EXPORT T2FireWork {
public:
T2FireWork(int inWidth, int inHeight, CPalette* inPalette);
~T2FireWork();
T2BitImage* GetBitImage();
void Start();
void Stop();
BOOL IsDisposable();
BOOL Idle();
protected:
BOOL CalcStarData(FIREWORK_STARINFO* inInfo, float inT, int* outX, int* outY, int* outPixel, int* outSize);
void PutDot(int inX, int inY, int inSize, unsigned char inCol);
BOOL mIsActive;
T2BitImage *mImage;
int mRowSize;
RECT mRect;
unsigned char mPalettes[5][8];
FIREWORK_STARINFO *mStarInfo[20];
BOOL mUsed[20];
};
#endif
|