|
CeresEngine 0.2.0
A game development framework
|
A material property with an associated value and texture. More...
#include <CeresEngine/Material/MaterialModel.hpp>
Public Member Functions | |
| MaterialProperty ()=default | |
| Creates a new empty material property. | |
| MaterialProperty (ValueType value) | |
| Creates a new material property from a raw value and no texture. | |
| MaterialProperty (TextureType texture, MaterialPropertySwizzle< ValueType > swizzle={}) | |
| Creates a new material property from an texture value and no raw value. | |
| MaterialProperty (ValueType value, TextureType texture, MaterialPropertySwizzle< ValueType > swizzle={}) | |
| Creates a new material property from both a raw value and an texture. | |
| MaterialProperty (const MaterialProperty &)=default | |
| MaterialProperty & | operator= (const MaterialProperty &)=default |
| MaterialProperty (MaterialProperty &&) noexcept=default | |
| MaterialProperty & | operator= (MaterialProperty &&) noexcept=default |
Public Attributes | |
| ValueType | value = ValueType(0) |
| The value associated with the material property. | |
| TextureType | texture = nullptr |
| The texture associated with the material property. | |
| GPUSamplerDescriptor | sampler |
| A descriptor that describes how material sampling should be done. | |
| MaterialPropertySwizzle< ValueType > | swizzle = {} |
| A property that allows mixing channels in a material property. | |
A material property with an associated value and texture.
|
default |
Creates a new empty material property.
|
inline |
Creates a new material property from a raw value and no texture.
|
inline |
Creates a new material property from an texture value and no raw value.
|
inlineexplicit |
Creates a new material property from both a raw value and an texture.
|
default |
|
defaultnoexcept |
|
default |
|
defaultnoexcept |
| GPUSamplerDescriptor CeresEngine::MaterialProperty< ValueType, TextureType >::sampler |
A descriptor that describes how material sampling should be done.
| MaterialPropertySwizzle<ValueType> CeresEngine::MaterialProperty< ValueType, TextureType >::swizzle = {} |
A property that allows mixing channels in a material property.
| TextureType CeresEngine::MaterialProperty< ValueType, TextureType >::texture = nullptr |
The texture associated with the material property.
| ValueType CeresEngine::MaterialProperty< ValueType, TextureType >::value = ValueType(0) |
The value associated with the material property.