Haio 0.2.X
Homebrew Asset IO/CDN
Loading...
Searching...
No Matches
Haio::Codecs::Tga::Header Struct Reference

#include <header.hpp>

Public Member Functions

int kind () const
bool rle () const
size_t unit () const
size_t pixels () const
int attributeBits () const
bool flipX () const
bool flipY () const

Public Attributes

uint8_t idLength = 0
uint8_t mapType = 0
uint8_t imageType = 0
uint16_t mapFirst = 0
uint16_t mapCount = 0
uint8_t mapBits = 0
uint16_t width = 0
uint16_t height = 0
uint8_t depth = 0
uint8_t descriptor = 0
size_t mapOffset = 0
size_t dataOffset = 0

Detailed Description

Definition at line 37 of file header.hpp.

Member Function Documentation

◆ attributeBits()

int Haio::Codecs::Tga::Header::attributeBits ( ) const
inline

how many of the sixteen bits are alpha, which for this format is a claim rather than a layout: the bit is in the same place either way, and this says whether anybody meant anything by it.

Definition at line 65 of file header.hpp.

◆ flipX()

bool Haio::Codecs::Tga::Header::flipX ( ) const
inline

the origin bits, which say where the first stored pixel belongs on screen

Definition at line 68 of file header.hpp.

◆ flipY()

bool Haio::Codecs::Tga::Header::flipY ( ) const
inline

Definition at line 69 of file header.hpp.

◆ kind()

int Haio::Codecs::Tga::Header::kind ( ) const
inline

mapped, truecolor or grey, with the run length flavours folded onto their own

Definition at line 53 of file header.hpp.

◆ pixels()

size_t Haio::Codecs::Tga::Header::pixels ( ) const
inline

Definition at line 58 of file header.hpp.

◆ rle()

bool Haio::Codecs::Tga::Header::rle ( ) const
inline

Definition at line 54 of file header.hpp.

◆ unit()

size_t Haio::Codecs::Tga::Header::unit ( ) const
inline

one stored unit: a colour for a truecolor picture, an index for a mapped one

Definition at line 57 of file header.hpp.

Member Data Documentation

◆ dataOffset

size_t Haio::Codecs::Tga::Header::dataOffset = 0

the pixels, whatever came before them

Definition at line 50 of file header.hpp.

◆ depth

uint8_t Haio::Codecs::Tga::Header::depth = 0

Definition at line 46 of file header.hpp.

◆ descriptor

uint8_t Haio::Codecs::Tga::Header::descriptor = 0

Definition at line 47 of file header.hpp.

◆ height

uint16_t Haio::Codecs::Tga::Header::height = 0

Definition at line 45 of file header.hpp.

◆ idLength

uint8_t Haio::Codecs::Tga::Header::idLength = 0

Definition at line 38 of file header.hpp.

◆ imageType

uint8_t Haio::Codecs::Tga::Header::imageType = 0

Definition at line 40 of file header.hpp.

◆ mapBits

uint8_t Haio::Codecs::Tga::Header::mapBits = 0

Definition at line 43 of file header.hpp.

◆ mapCount

uint16_t Haio::Codecs::Tga::Header::mapCount = 0

Definition at line 42 of file header.hpp.

◆ mapFirst

uint16_t Haio::Codecs::Tga::Header::mapFirst = 0

Definition at line 41 of file header.hpp.

◆ mapOffset

size_t Haio::Codecs::Tga::Header::mapOffset = 0

the colour map, when there is one

Definition at line 49 of file header.hpp.

◆ mapType

uint8_t Haio::Codecs::Tga::Header::mapType = 0

Definition at line 39 of file header.hpp.

◆ width

uint16_t Haio::Codecs::Tga::Header::width = 0

Definition at line 44 of file header.hpp.


The documentation for this struct was generated from the following file: