Header of a targa file. More...
#include <targa.hpp>
Classes | |
| struct | specification |
| Image specification. More... | |
Public Member Functions | |
| header () | |
| Default constructor. | |
| header (unsigned int w, unsigned int h) | |
| Constructor. | |
Public Attributes | |
| char | id_length |
| Image identifier length. | |
| char | color_map |
| 1 if there is a color map, 0 otherwise. | |
| char | image_type |
| Image type. | |
| struct { | |
| unsigned short first_entry_index | |
| Index of the first color map entry. | |
| unsigned short length | |
| Total number of color map entries included. | |
| unsigned char entry_size | |
| Number of bits per enrty. | |
| } | color_map_specification |
| Color map specification. | |
| struct claw::graphic::targa::file_structure::header::specification | image_specification |
| Image specification. | |
Header of a targa file.
Definition at line 76 of file targa.hpp.
| claw::graphic::targa::file_structure::header::header | ( | ) |
Default constructor.
Definition at line 41 of file targa_file_structure.cpp.
{
} // targa::file_structure::header::header()
| claw::graphic::targa::file_structure::header::header | ( | unsigned int | w, | |
| unsigned int | h | |||
| ) |
Constructor.
| w | The width of the image. | |
| h | The height of the image. |
Definition at line 53 of file targa_file_structure.cpp.
{
id_length = 0;
color_map = 0;
image_type = true_color;
color_map_specification.first_entry_index = 0;
color_map_specification.length = 0;
color_map_specification.entry_size = 0;
image_specification.x_origin = 0;
image_specification.y_origin = 0;
image_specification.width = w;
image_specification.height = h;
image_specification.bpp = 32; // pixel32
image_specification.descriptor = 8; // unsigned char
image_specification.descriptor |= 0x20; // origin is top-left
} // targa::file_structure::header::header()
1 if there is a color map, 0 otherwise.
Definition at line 86 of file targa.hpp.
Referenced by claw::graphic::targa::reader::decompress_rle_true_color(), and claw::graphic::targa::reader::load_true_color_raw().
Color map specification.
Referenced by claw::graphic::targa::reader::load_color_mapped(), claw::graphic::targa::reader::load_palette(), and claw::graphic::targa::reader::load_rle_color_mapped().
| unsigned char claw::graphic::targa::file_structure::header::entry_size |
Number of bits per enrty.
Definition at line 98 of file targa.hpp.
Referenced by claw::graphic::targa::reader::load_palette().
Image identifier length.
Definition at line 84 of file targa.hpp.
Referenced by claw::graphic::targa::reader::load_color_mapped(), claw::graphic::targa::reader::load_rle_color_mapped(), claw::graphic::targa::reader::load_rle_true_color(), and claw::graphic::targa::reader::load_true_color().
| struct claw::graphic::targa::file_structure::header::specification claw::graphic::targa::file_structure::header::image_specification |
Image specification.
Referenced by claw::graphic::targa::reader::decompress_rle_color_mapped(), claw::graphic::targa::reader::decompress_rle_true_color(), claw::graphic::targa::reader::load(), claw::graphic::targa::reader::load_color_mapped(), claw::graphic::targa::reader::load_color_mapped_raw(), claw::graphic::targa::reader::load_rle_color_mapped(), claw::graphic::targa::reader::load_rle_true_color(), claw::graphic::targa::reader::load_true_color(), and claw::graphic::targa::reader::load_true_color_raw().
Image type.
Definition at line 88 of file targa.hpp.
Referenced by claw::graphic::targa::reader::load(), claw::graphic::targa::reader::load_color_mapped(), claw::graphic::targa::reader::load_palette(), claw::graphic::targa::reader::load_rle_color_mapped(), claw::graphic::targa::reader::load_rle_true_color(), and claw::graphic::targa::reader::load_true_color().
| unsigned short claw::graphic::targa::file_structure::header::length |
Total number of color map entries included.
Definition at line 96 of file targa.hpp.
Referenced by claw::graphic::targa::reader::load_color_mapped(), and claw::graphic::targa::reader::load_rle_color_mapped().
1.7.1