Antkeeper  0.0.1
Public Member Functions | List of all members
render::material_variable_base Class Referenceabstract

Abstract base class for material variables. More...

#include <material-variable.hpp>

Inheritance diagram for render::material_variable_base:
render::material_variable< T >

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_baseclone () const =0
 Creates a copy of this material property. More...
 

Detailed Description

Abstract base class for material variables.

Definition at line 35 of file material-variable.hpp.

Constructor & Destructor Documentation

◆ ~material_variable_base()

virtual render::material_variable_base::~material_variable_base ( )
virtualdefault

Destructs a material variable base.

Member Function Documentation

◆ clone()

virtual std::unique_ptr<material_variable_base> render::material_variable_base::clone ( ) const
pure virtual

Creates a copy of this material property.

Implemented in render::material_variable< T >.

◆ size()

virtual std::size_t render::material_variable_base::size ( ) const
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 >.

◆ type()

virtual constexpr material_variable_type render::material_variable_base::type ( ) const
constexprpure virtualnoexcept

Returns the material variable data type.

Implemented in render::material_variable< T >.


The documentation for this class was generated from the following file: