Texture Class Reference

List of all members.

Public Member Functions

 Texture ()
 ~Texture ()

Static Public Member Functions

static void export_ppm (const std::string &filename, const unsigned int &size_1, const int &size_2, const std::vector< float > &red_channel, const std::vector< float > &green_channel, const std::vector< float > &blue_channel)
 Export ppm texture.

Constructor & Destructor Documentation

Texture::Texture (  ) 
Texture::~Texture (  ) 

Member Function Documentation

void Texture::export_ppm ( const std::string &  filename,
const unsigned int &  size_1,
const int &  size_2,
const std::vector< float > &  red_channel,
const std::vector< float > &  green_channel,
const std::vector< float > &  blue_channel 
) [static]

Export ppm texture.

Parameters:
filename,: the name of the picture
size_1,: size in x direction
size_2,: size in y direction
r_channel,: red component (must be of size size_1*size_2)
g_channel,: green component (must be of size size_1*size_2)
b_channel,: blue component (must be of size size_1*size_2)

Values must be between [0,255]. Otherwise clamped.

Referenced by main().


The documentation for this class was generated from the following files:
Generated on Mon May 16 17:09:57 2011 by  doxygen 1.6.3