Files | |
| file | CColor.h |
| This file contains the declaration and implementation of the CColor class, a class that represents a color. | |
| file | CImage.cpp |
| This file contains the implementation of the CImage class, a class representing an image. | |
| file | CImage.h |
| This file contains the declaration of the CImage class, a class representing an image. | |
| file | CVector3f.h |
| This file contains the declaration and implementation of a 3D vector (with float precision) class. | |
Classes | |
| class | CColor |
| This class represents a color. More... | |
| struct | bmpinfoheader |
| This structure is one of the bmp headers. More... | |
| struct | bmpfileheader |
| This structure is another bmp header. More... | |
| class | CImage |
| This class represents an image. More... | |
| class | CVector3f |
| This class represents a 3D vector (with float precision) class. More... | |
Functions | |
| CColor | operator * (float k, const CColor &c) |
| This operator returns the product of a scalar and a color. | |
| std::ostream & | operator<< (std::ostream &o, const CColor &c) |
| This operator prints the value of the color. | |
| CVector3f | operator * (float k, const CVector3f &v) |
| std::ostream & | operator<< (std::ostream &o, const CVector3f &v) |
| int | CImage::WriteBmpFile (const std::string &FileName) const |
| This function writes the CImage data to an image file. | |
This operator returns the product of a scalar and a vector.
Definition at line 240 of file CVector3f.h.
References CVector3f::x, CVector3f::y, and CVector3f::z.
This operator returns the product of a scalar and a color.
Definition at line 193 of file CColor.h.
References CColor::alpha, CColor::blue, CColor::green, and CColor::red.
| std::ostream& operator<< | ( | std::ostream & | o, | |
| const CVector3f & | v | |||
| ) | [inline] |
This operator prints the value of the vector.
Definition at line 248 of file CVector3f.h.
References CVector3f::x, CVector3f::y, and CVector3f::z.
| std::ostream& operator<< | ( | std::ostream & | o, | |
| const CColor & | c | |||
| ) | [inline] |
This operator prints the value of the color.
Definition at line 201 of file CColor.h.
References CColor::alpha, CColor::blue, CColor::green, and CColor::red.
| int CImage::WriteBmpFile | ( | const std::string & | FileName | ) | const [inherited] |
This function writes the CImage data to an image file.
It uses the BMP file format. It returns -1 if the file couldn't be opened and -2 if an error occured while writing to the file.
Definition at line 61 of file CImage.cpp.
References bmpfileheader::bfOffBits, bmpfileheader::bfReserved1, bmpfileheader::bfReserved2, bmpfileheader::bfSize, bmpfileheader::bfType, bmpinfoheader::biBitCount, bmpinfoheader::biClrImportant, bmpinfoheader::biClrUsed, bmpinfoheader::biCompression, bmpinfoheader::biHeight, bmpinfoheader::biPlanes, bmpinfoheader::biSize, bmpinfoheader::biSizeImage, bmpinfoheader::biWidth, bmpinfoheader::biXPelsPerMeter, bmpinfoheader::biYPelsPerMeter, CImage::m_Height, and CImage::m_Width.
Referenced by CCommandExecutor::Execute().
1.5.4