#include <targa.hpp>
Definition at line 76 of file targa.hpp.
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. | |
claw::graphic::targa::file_structure::header::specification | image_specification |
Image specification. | |
Classes | |
struct | specification |
Image specification. More... |
claw::graphic::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.
References claw::graphic::targa::file_structure::true_color.
00054 { 00055 id_length = 0; 00056 color_map = 0; 00057 00058 image_type = true_color; 00059 00060 color_map_specification.first_entry_index = 0; 00061 color_map_specification.length = 0; 00062 color_map_specification.entry_size = 0; 00063 00064 image_specification.x_origin = 0; 00065 image_specification.y_origin = 0; 00066 image_specification.width = w; 00067 image_specification.height = h; 00068 00069 image_specification.bpp = 32; // pixel32 00070 00071 image_specification.descriptor = 8; // unsigned char 00072 image_specification.descriptor |= 0x20; // origin is top-left 00073 } // targa::file_structure::header::header()
Color map specification.
unsigned char claw::graphic::targa::file_structure::header::entry_size |
struct claw::graphic::targa::file_structure::header::specification claw::graphic::targa::file_structure::header::image_specification |
Image specification.
unsigned short claw::graphic::targa::file_structure::header::length |