Photon Engine 2.0.0-beta
A physically based renderer.
|
Represent a pixel from pixel buffer. More...
#include <PixelBuffer2D.h>
Public Member Functions | |
TPixel () | |
template<std::size_t N> | |
TPixel (const std::array< T, N > &values) | |
Make a pixel from an array of values. Number of pixel values is inferred by the array dimension. | |
template<std::size_t N> | |
TPixel (const std::array< T, N > &valueBuffer, std::size_t numUsedValues) | |
Make a pixel from values in a buffer. | |
template<typename U > | |
TPixel (const TPixel< U > &other) | |
template<std::size_t N> | |
std::array< T, N > | getValues () const |
std::array< T, MAX_PIXEL_ELEMENTS > | getAllValues () const |
std::size_t | numValues () const |
T | operator[] (std::size_t index) const |
Represent a pixel from pixel buffer.
|
inline |
|
inline |
Make a pixel from an array of values. Number of pixel values is inferred by the array dimension.
|
inline |
Make a pixel from values in a buffer.
numUsedValues | Number of pixel values to extract from valueBuffer . |
|
inlineexplicit |
|
inline |
Values other than the stored values (i.e., index >= numValues
) will be 0.
|
inline |
|
inline |
|
inline |