11#ifndef _BITMAP_Z_H_
22#define _BITMAP_Z_H_
33#include " ResourceObject_Z.h"
4+ #include " Types_Z.h"
5+ enum BmFormat_Z
6+ {
7+ BM_4 = 0x01 , // 4 Bits Indexed RGB
8+ BM_8 = 0x02 , // 8 Bits Indexed RGB
9+ BM_5551 = 0x07 , // 16 RGBA
10+ BM_565 = 0x08 , // 16 RGB
11+ BM_4444 = 0x0A , // 16 RGBA
12+ BM_1555 = 0x0B , // .TGA compatibility
13+ BM_8888 = 0x0C , // 32 RGBA
14+ BM_888 = 0x0D , // 24 RGB
15+ BM_CMPR = 0x0E , // S3TC
16+ BM_I4A4 = 0x0F , // I4A4
17+ BM_I8A8 = 0x10 , // I4A4
18+ };
19+
20+ enum PalFormat_Z
21+ {
22+ PAL_3444 = 0x01 , // 16 ARGB
23+ PAL_565 = 0x02 , // 16 RGB
24+ PAL_8888 = 0x03 , // 32 RGBA
25+ PAL_LUM = 0x04 , // Luminance
26+ PAL_ALPHA = 0x05 , // Alpha
27+ PAL_DXT1 = 0x11 , // DXT1 (OPAQUE)
28+ PAL_DXT3 = 0x12 , // DXT3 (ALPHA)
29+ PAL_DXT5 = 0x13 , // DXT5 (ALPHA)
30+ };
31+
32+ enum BmTransp
33+ {
34+ BM_NO_TRANSP = 0 ,
35+ BM_TRANSP_ONE = 1 ,
36+ BM_TRANSP = 2
37+ };
438
539class Bitmap_Z : public ResourceObject_Z
640{
@@ -14,20 +48,20 @@ class Bitmap_Z : public ResourceObject_Z
1448 void InitBmap (S32 width, S32 height, U8 format, U8* palPointer, U8 dataPointer);
1549 void EnableFlag (U8 _Flag) {Flag|=_Flag;}
1650 private:
17- void * dataPointer ;
18- void * palPointer ;
51+ void * Datas ;
52+ void * Palette ;
1953 S16 texID;
20- U32 width ;
21- U32 height ;
54+ U32 SizeX ;
55+ U32 SizeY ;
2256 U32 precalculatedSize;
2357 U8 format;
24- U8 formatCopy ;
25- U8 paletteFormat ;
26- U8 transpFormat ;
27- U8 mipmapCount ;
58+ U8 trueFormat ;
59+ U8 PalFormat ;
60+ U8 Transp ;
61+ U8 MipmapCount ;
2862 U8 unkSetTo4;
29- U8 flag ;
30- U8 dontDelete ;
63+ U8 Flag ;
64+ U8 DontDelete ;
3165
3266};
3367#endif
0 commit comments