Photon Engine 2.0.0-beta
A physically based renderer.
|
Raw representation of common picture types. More...
#include <RegularPicture.h>
Public Member Functions | |
RegularPicture () | |
Creates an empty picture. | |
RegularPicture (math::Vector2S sizePx, std::size_t numComponents, EPicturePixelComponent componentType) | |
Creates a picture with allocated picture data. Pixel data can to be set later by calling pictureData.setPixels() . | |
RegularPicture (RegularPicture &&other) | |
const RegularPictureFormat & | getFormat () const |
void | setFormat (const RegularPictureFormat &format) |
std::size_t | numComponents () const |
EPicturePixelComponent | getComponentType () const |
bool | isLDR () const |
bool | isHDR () const |
math::Vector2S | getSizePx () const |
std::size_t | getWidthPx () const |
std::size_t | getHeightPx () const |
PictureData & | getPixels () |
const PictureData & | getPixels () const |
RegularPicture & | operator= (RegularPicture &&rhs) |
Raw representation of common picture types.
ph::RegularPicture::RegularPicture | ( | ) |
Creates an empty picture.
ph::RegularPicture::RegularPicture | ( | math::Vector2S | sizePx, |
std::size_t | numComponents, | ||
EPicturePixelComponent | componentType ) |
Creates a picture with allocated picture data. Pixel data can to be set later by calling pictureData.setPixels()
.
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool ph::RegularPicture::isHDR | ( | ) | const |
bool ph::RegularPicture::isLDR | ( | ) | const |
|
inline |
|
default |
void ph::RegularPicture::setFormat | ( | const RegularPictureFormat & | format | ) |