Skip to content

Commit d17d3b0

Browse files
committed
Bitmap Renaming
1 parent fae110c commit d17d3b0

File tree

2 files changed

+53
-19
lines changed

2 files changed

+53
-19
lines changed

src/Engine/Bitmap_Z.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ Bitmap_Z::~Bitmap_Z()
1717
}
1818

1919
void Bitmap_Z::Init() {
20-
this->flag = 0;
20+
this->Flag = 0;
2121
Bitmap_Z::EnableFlag(0x14);
22-
this->dataPointer = 0;
23-
this->palPointer = 0;
24-
this->width = 0;
25-
this->height = 0;
26-
this->formatCopy = 0;
22+
this->Datas = 0;
23+
this->Palette = 0;
24+
this->SizeX = 0;
25+
this->SizeY = 0;
26+
this->trueFormat = 0;
2727
this->unkSetTo4 = 4;
2828
this->texID = -1;
29-
this->transpFormat = -1;
30-
this->mipmapCount = 0;
29+
this->Transp = -1;
30+
this->MipmapCount = 0;
3131
this->precalculatedSize = 0;
32-
this->paletteFormat = 3;
32+
this->PalFormat = PAL_8888;
3333
}
3434

src/Engine/includes/Bitmap_Z.h

Lines changed: 44 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,40 @@
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

539
class 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

Comments
 (0)