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
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:
- /home/damien.rohmer/work/2011_teaching/2011_eti4_synthese/volumique/tp/tp_etudiant/header/Texture.hpp
- /home/damien.rohmer/work/2011_teaching/2011_eti4_synthese/volumique/tp/tp_etudiant/src/Texture.cpp