53 (
unsigned int w,
unsigned int h )
58 image_type = true_color;
60 color_map_specification.first_entry_index = 0;
61 color_map_specification.length = 0;
62 color_map_specification.entry_size = 0;
64 image_specification.x_origin = 0;
65 image_specification.y_origin = 0;
66 image_specification.width = w;
67 image_specification.height = h;
69 image_specification.bpp = 32;
71 image_specification.descriptor = 8;
72 image_specification.descriptor |= 0x20;
91 return descriptor & 0x20;
102 return !(descriptor & 0x10);
112 return descriptor & 0x0F;
125 claw::graphic::targa::file_structure::footer::s_signature(
"TRUEVISION-XFILE.");
132 : extension_offset(0), developer_offset(0)
134 std::copy( s_signature.begin(), s_signature.end(),
signature );
144 return std::equal( s_signature.begin(), s_signature.end(), signature )
145 && signature[s_signature.length()] ==
'\0';