|
Photon Engine 2.0.0-beta
A physically based renderer.
|
Collection of attached components to a primitive. This type effectively "glues" various components that helps to describe additional properties related to a primitive. More...
#include <PrimitiveMetadata.h>
Public Member Functions | |
| PrimitiveMetadata () | |
| uint8 | addChannel (const PrimitiveChannel &channel) |
| Adds a channel to the metadata. | |
| void | setChannel (uint8 channelId, PrimitiveChannel channel) |
| const PrimitiveChannel & | getChannel (uint8 channelId) const |
| const PrimitiveChannel & | getDefaultChannel () const |
| bool | isChannelIdValid (uint8 channelId) const |
| SurfaceBehavior & | getSurface () |
| VolumeBehavior & | getInterior () |
| VolumeBehavior & | getExterior () |
| const SurfaceBehavior & | getSurface () const |
| const VolumeBehavior & | getInterior () const |
| const VolumeBehavior & | getExterior () const |
Static Public Attributes | |
| static constexpr auto | INVALID_CHANNEL_ID = static_cast<uint8>(-1) |
| static constexpr auto | DEFAULT_CHANNEL_ID = static_cast<uint8>( 0) |
Collection of attached components to a primitive. This type effectively "glues" various components that helps to describe additional properties related to a primitive.
| ph::PrimitiveMetadata::PrimitiveMetadata | ( | ) |
| uint8 ph::PrimitiveMetadata::addChannel | ( | const PrimitiveChannel & | channel | ) |
Adds a channel to the metadata.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void ph::PrimitiveMetadata::setChannel | ( | uint8 | channelId, |
| PrimitiveChannel | channel ) |
|
staticconstexpr |
|
staticconstexpr |