2023-04-27 22:19:39 -04:00
|
|
|
#ifndef MXBITMAP_H
|
|
|
|
#define MXBITMAP_H
|
|
|
|
|
2023-06-30 19:24:00 -04:00
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include "mxcore.h"
|
2023-06-30 14:34:39 -04:00
|
|
|
#include "mxpalette.h"
|
2023-06-30 19:24:00 -04:00
|
|
|
#include "mxtypes.h"
|
2023-06-30 14:34:39 -04:00
|
|
|
|
2023-06-30 19:24:00 -04:00
|
|
|
class MxBitmap : public MxCore
|
2023-04-27 22:19:39 -04:00
|
|
|
{
|
|
|
|
public:
|
2023-06-11 21:03:54 -04:00
|
|
|
__declspec(dllexport) MxBitmap();
|
|
|
|
__declspec(dllexport) virtual ~MxBitmap();
|
|
|
|
__declspec(dllexport) virtual MxPalette *CreatePalette();
|
|
|
|
__declspec(dllexport) virtual long Read(const char *);
|
2023-06-30 19:24:00 -04:00
|
|
|
private:
|
|
|
|
BITMAPINFO *m_info;
|
|
|
|
BITMAPINFOHEADER *m_bmiHeader;
|
|
|
|
RGBQUAD *m_paletteData;
|
|
|
|
LPVOID *m_data;
|
|
|
|
MxBool m_unk18;
|
|
|
|
MxPalette *m_palette;
|
2023-04-27 22:19:39 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXBITMAP_H
|