Claw  1.7.3
Classes | Public Member Functions | List of all members
claw::graphic::targa::reader Class Reference

This class read data from a targa file and store it in an image. More...

#include <targa.hpp>

Inherits claw::graphic::targa::file_structure.

Classes

class  file_input_buffer
 The type of the input buffer associated with the file when decoding RLE files.
class  mapped_file_input_buffer
 The type of the input buffer associated with the file when decoding RLE files using a color palette.
class  rle_targa_decoder
 RLE decoder for targa RLE format.
class  rle_targa_output_buffer
 The output buffer for the RLE decoder.

Public Member Functions

 reader (image &img)
 Constructor.
 reader (image &img, std::istream &f)
 Constructor.
void load (std::istream &f)
 Load an image from a targa file.

Additional Inherited Members

- Private Types inherited from claw::graphic::targa::file_structure
enum  image_coding {
  color_mapped = 1, true_color = 2, black_and_white = 3, rle_color_mapped = 9,
  rle_true_color = 10, rle_black_and_white = 11
}

Detailed Description

This class read data from a targa file and store it in an image.

Author
Julien Jorge

Definition at line 216 of file targa.hpp.

Constructor & Destructor Documentation

claw::graphic::targa::reader::reader ( image img)

Constructor.

Parameters
imgThe image in which the data will be stored.

Definition at line 193 of file targa_reader.cpp.

claw::graphic::targa::reader::reader ( image img,
std::istream &  f 
)

Constructor.

Parameters
imgThe image in which the data will be stored.
fThe file from which we read the data.
Postcondition
img contains the data from f.

Definition at line 206 of file targa_reader.cpp.

References load().

Member Function Documentation

void claw::graphic::targa::reader::load ( std::istream &  f)

The documentation for this class was generated from the following files: