mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 09:52:28 +00:00
refactor(profile): profiles are now stored in profile/ subdirectory
This commit is contained in:
parent
1e1f435c5c
commit
c2b96d98b6
100 changed files with 58650 additions and 10 deletions
70
profile/3.3.5a-windows/include/texture/blp.h
Normal file
70
profile/3.3.5a-windows/include/texture/blp.h
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
#ifndef TEXTURE_BLP_H
|
||||
#define TEXTURE_BLP_H
|
||||
|
||||
#include "system/types.h"
|
||||
|
||||
#include "storm/file.h"
|
||||
|
||||
#include "gx/types.h"
|
||||
|
||||
DECLARE_HANDLE(HCOLORMAP);
|
||||
|
||||
DECLARE_ENUM(MipMapAlgorithm);
|
||||
|
||||
DECLARE_STRUCT(CBLPFile);
|
||||
DECLARE_STRUCT(BlpPalPixel);
|
||||
DECLARE_STRUCT(BLPHeader);
|
||||
DECLARE_STRUCT(BLPJPEGHeader);
|
||||
|
||||
enum MipMapAlgorithm {
|
||||
MMA_BOX = 0x0,
|
||||
MMA_CUBIC = 0x1,
|
||||
MMA_FULLDFT = 0x2,
|
||||
MMA_KAISER = 0x3,
|
||||
MMA_LINEARLIGHTKAISER = 0x4
|
||||
};
|
||||
|
||||
struct BlpPalPixel {
|
||||
uint8_t b;
|
||||
uint8_t g;
|
||||
uint8_t r;
|
||||
uint8_t pad;
|
||||
};
|
||||
|
||||
struct BLPJPEGHeader {
|
||||
uint32_t headerSize;
|
||||
uint8_t headerData[1020];
|
||||
};
|
||||
|
||||
struct BLPHeader {
|
||||
uint32_t magic;
|
||||
uint32_t formatVersion;
|
||||
uint8_t colorEncoding;
|
||||
uint8_t alphaSize;
|
||||
uint8_t preferredFormat;
|
||||
uint8_t hasMips;
|
||||
uint32_t width;
|
||||
uint32_t height;
|
||||
uint32_t mipOffsets[16];
|
||||
uint32_t mipSizes[16];
|
||||
|
||||
union {
|
||||
BlpPalPixel palette[256];
|
||||
|
||||
BLPJPEGHeader jpeg;
|
||||
} extended;
|
||||
};
|
||||
|
||||
struct CBLPFile {
|
||||
MipBits* m_images;
|
||||
BLPHeader m_header;
|
||||
void* m_inMemoryImage;
|
||||
int32_t m_inMemoryNeedsFree;
|
||||
uint32_t m_numLevels;
|
||||
uint32_t m_quality;
|
||||
HCOLORMAP m_colorMapping;
|
||||
MipMapAlgorithm m_mipMapAlgorithm;
|
||||
uint8_t* m_lockDecompMem;
|
||||
};
|
||||
|
||||
#endif
|
||||
66
profile/3.3.5a-windows/include/texture/tga.h
Normal file
66
profile/3.3.5a-windows/include/texture/tga.h
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
#ifndef TEXTURE_TGA_H
|
||||
#define TEXTURE_TGA_H
|
||||
|
||||
#include "system/types.h"
|
||||
|
||||
#include "storm/file.h"
|
||||
|
||||
DECLARE_STRUCT(TGAFooter);
|
||||
DECLARE_STRUCT(TGAHeader);
|
||||
DECLARE_STRUCT(TGA32Pixel);
|
||||
DECLARE_STRUCT(TGAImageDesc);
|
||||
DECLARE_STRUCT(CTgaFile);
|
||||
|
||||
struct TGAFooter {
|
||||
uint32_t dwExtensionOffset;
|
||||
uint32_t dwDeveloperOffset;
|
||||
uint8_t szSigniture[18];
|
||||
};
|
||||
|
||||
#pragma pack(push, 1)
|
||||
|
||||
struct TGAImageDesc {
|
||||
uint8_t bAlphaChannelBits : 4;
|
||||
uint8_t bLeftRightOrder : 1;
|
||||
uint8_t bTopBottomOrder : 1;
|
||||
uint8_t bReserved : 2;
|
||||
};
|
||||
|
||||
struct TGAHeader {
|
||||
uint8_t bIDLength;
|
||||
uint8_t bColorMapType;
|
||||
uint8_t bImageType;
|
||||
// byte packed
|
||||
uint16_t wColorMapStartIndex;
|
||||
uint16_t wColorMapEntries;
|
||||
uint8_t bColorMapEntrySize;
|
||||
uint16_t wXOrigin;
|
||||
uint16_t wYOrigin;
|
||||
uint16_t wWidth;
|
||||
uint16_t wHeight;
|
||||
uint8_t bPixelDepth;
|
||||
union {
|
||||
uint8_t bImageDescriptor;
|
||||
TGAImageDesc desc;
|
||||
};
|
||||
};
|
||||
#pragma pack(pop)
|
||||
|
||||
struct TGA32Pixel {
|
||||
uint8_t b;
|
||||
uint8_t g;
|
||||
uint8_t r;
|
||||
uint8_t a;
|
||||
};
|
||||
|
||||
struct CTgaFile {
|
||||
SFile* m_file;
|
||||
uint8_t* m_image;
|
||||
TGAHeader m_header;
|
||||
uint8_t* m_addlHeaderData;
|
||||
TGAFooter m_footer;
|
||||
uint32_t m_imageBytes;
|
||||
uint8_t* m_colorMap;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue