From c0c336500955a23e344651e5412c9d9d441ef4ee Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 28 Jun 2023 22:22:32 +0100 Subject: first pass of T2DLL --- src/T2DLL/T2FireWork.h | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) (limited to 'src/T2DLL/T2FireWork.h') diff --git a/src/T2DLL/T2FireWork.h b/src/T2DLL/T2FireWork.h index e9e5215..37b3fc0 100644 --- a/src/T2DLL/T2FireWork.h +++ b/src/T2DLL/T2FireWork.h @@ -1,19 +1,37 @@ #pragma once #include "common.h" -class T2FireWork { +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_EXT_CLASS T2FireWork { public: - T2FireWork(int, int, CPalette*); + T2FireWork(int inWidth, int inHeight, CPalette* inPalette); ~T2FireWork(); T2BitImage* GetBitImage(); void Start(); void Stop(); - int IsDisposable(); - int Idle(); + BOOL IsDisposable(); + BOOL Idle(); protected: - int CalcStarData(FIREWORK_STARINFO*, float, int*, int*, int*, int*); - void PutDot(int, int, int, unsigned char); + 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); -public: - T2FireWork& operator=(const T2FireWork&) {} + BOOL mIsActive; + T2BitImage *mImage; + int mRowSize; + RECT mRect; + unsigned char mPalettes[5][8]; + FIREWORK_STARINFO *mStarInfo[20]; + BOOL mUsed[20]; }; -- cgit v1.2.3