FileDefinesTGA.h#
↰ Parent directory (textureio
)
Defines used internally by the TGA reader.
Includes#
cstdint
Included By#
Namespaces#
Classes#
Enums#
Variables#
Source Code#
#pragma once
#include <cstdint>
namespace pvr {
namespace texture_tga {
struct FileHeader
{
uint8_t identSize;
uint8_t colorMapType;
uint8_t imageType;
int16_t colorMapStart;
int16_t colorMapLength;
uint8_t colorMapBits;
int16_t xStart;
int16_t yStart;
int16_t width;
int16_t height;
uint8_t bits;
uint8_t descriptor;
};
namespace ColorMap {
enum Enum
{
None,
Paletted
};
} // namespace ColorMap
namespace ImageType {
enum Enum
{
None,
Indexed,
RGB,
GreyScale,
RunLengthNone = 8,
RunLengthIndexed,
RunLengthRGB,
RunLengthGreyScale,
RunLengthHuffmanDelta = 32,
RunLengthHuffmanDeltaFourPassQuadTree
};
} // namespace ImageType
enum DescriptorFlag
{
DescriptorFlagAlpha = 8
};
// Expected size of a header in file
static const uint32_t ExpectedHeaderSize = 18;
} // namespace texture_tga
} // namespace pvr