mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-12 04:25:12 -05:00
d24c8453db
subrepo: subdir: "libultraship" merged: "a484cda98" upstream: origin: "https://github.com/HarbourMasters/libultraship.git" branch: "main" commit: "a484cda98" git-subrepo: version: "0.4.1" origin: "???" commit: "???"
41 lines
701 B
C++
41 lines
701 B
C++
#pragma once
|
|
|
|
#include "Resource.h"
|
|
|
|
namespace Ship
|
|
{
|
|
enum class TextureType
|
|
{
|
|
Error = 0,
|
|
RGBA32bpp = 1,
|
|
RGBA16bpp = 2,
|
|
Palette4bpp = 3,
|
|
Palette8bpp = 4,
|
|
Grayscale4bpp = 5,
|
|
Grayscale8bpp = 6,
|
|
GrayscaleAlpha4bpp = 7,
|
|
GrayscaleAlpha8bpp = 8,
|
|
GrayscaleAlpha16bpp = 9,
|
|
};
|
|
|
|
class TextureV0 : public ResourceFile
|
|
{
|
|
public:
|
|
TextureType texType;
|
|
uint16_t width, height;
|
|
uint32_t offsetToImageData;
|
|
uint32_t offsetToPaletteData;
|
|
|
|
void ParseFileBinary(BinaryReader* reader, Resource* res) override;
|
|
};
|
|
|
|
class Texture : public Resource
|
|
{
|
|
public:
|
|
TextureType texType;
|
|
uint16_t width, height;
|
|
uint32_t imageDataSize;
|
|
uint8_t* imageData;
|
|
uint8_t* paletteData;
|
|
};
|
|
} |