cpe::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 unsigned int &size_2, const std::vector< float > &red_channel, const std::vector< float > &green_channel, const std::vector< float > &blue_channel)
 Export ppm texture.
static void export_ppm (const std::string &filename, const unsigned int &size_1, const unsigned int &size_2, const std::vector< cpe::color > &color_vector)
 Export ppm texture.

Constructor & Destructor Documentation


Member Function Documentation

void cpe::Texture::export_ppm ( const std::string &  filename,
const unsigned int &  size_1,
const unsigned 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().

void cpe::Texture::export_ppm ( const std::string &  filename,
const unsigned int &  size_1,
const unsigned int &  size_2,
const std::vector< cpe::color > &  color_vector 
) [static]

Export ppm texture.

Parameters:
filename,:the name of the picture
size_1,:size in x direction
size_2,:size in y direction
color_vector,:the vector of (red,green,blue)

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

References cpe::color::b(), cpe::color::g(), and cpe::color::r().

+ Here is the call graph for this function:


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