Inheritance diagram for claw::graphic::targa::reader::mapped_file_input_buffer< Pixel >:
Template parameters
Definition at line 246 of file targa.hpp.
Public Member Functions | |
mapped_file_input_buffer (std::istream &f, const color_palette32 &p) | |
Constructor. | |
rgba_pixel_8 | get_pixel () |
template<> | |
rgba_pixel_8 | get_pixel () |
Private Types | |
typedef Pixel | pixel_type |
The type of the pixels in the input buffer. | |
Private Attributes | |
const color_palette32 & | m_palette |
The color map of the image. |
typedef Pixel claw::graphic::targa::reader::mapped_file_input_buffer< Pixel >::pixel_type [private] |
claw::graphic::targa::reader::mapped_file_input_buffer< Pixel >::mapped_file_input_buffer | ( | std::istream & | f, | |
const color_palette32 & | p | |||
) |
Constructor.
f | The file to read. | |
p | The color palette. |
Definition at line 64 of file targa_reader.tpp.
00065 : buffered_istream<std::istream>(f), m_palette(p) 00066 { 00067 00068 } // targa::reader::mapped_file_input_buffer::mapped_file_input_buffer
rgba_pixel_8 claw::graphic::targa::reader::mapped_file_input_buffer< targa::pixel8 >::get_pixel | ( | ) |
Definition at line 165 of file targa_reader.cpp.
References claw::buffered_istream< std::istream >::get_next(), and claw::graphic::targa::reader::mapped_file_input_buffer< Pixel >::m_palette.
00166 { 00167 if ( this->remaining() < 1 ) 00168 this->read_more(1); 00169 00170 assert( this->remaining() >= 1 ); 00171 00172 unsigned char index = this->get_next(); 00173 00174 return m_palette[index]; 00175 } // targa::reader::mapped_file_input_buffer::get_pixel()
rgba_pixel_8 claw::graphic::targa::reader::mapped_file_input_buffer< Pixel >::get_pixel | ( | ) |
const color_palette32& claw::graphic::targa::reader::mapped_file_input_buffer< Pixel >::m_palette [private] |
The color map of the image.
Definition at line 259 of file targa.hpp.
Referenced by claw::graphic::targa::reader::mapped_file_input_buffer< Pixel >::get_pixel().