Antkeeper
0.0.1
|
Abstract base class for material variables. More...
#include <material-variable.hpp>
Public Member Functions | |
virtual | ~material_variable_base ()=default |
Destructs a material variable base. More... | |
virtual constexpr material_variable_type | type () const noexcept=0 |
Returns the material variable data type. More... | |
virtual std::size_t | size () const noexcept=0 |
Returns the number of elements in an array variable, or 1 if the variable is not an array. More... | |
virtual std::unique_ptr< material_variable_base > | clone () const =0 |
Creates a copy of this material property. More... | |
Abstract base class for material variables.
Definition at line 35 of file material-variable.hpp.
|
virtualdefault |
Destructs a material variable base.
|
pure virtual |
Creates a copy of this material property.
Implemented in render::material_variable< T >.
|
pure virtualnoexcept |
Returns the number of elements in an array variable, or 1
if the variable is not an array.
Implemented in render::material_variable< T >.
|
constexprpure virtualnoexcept |
Returns the material variable data type.
Implemented in render::material_variable< T >.