TypedMaterialParameter< TYPE > Struct Template Reference

#include <nodematerialexchange.h>

Detailed Description

template<typename TYPE>
struct maxon::nodes::TypedMaterialParameter< TYPE >

Defines a material parameter that is used to communicated via the MaterialExchangeInterface. This class only holds a single value and no texture, but it may indicate the need for a texture representation.

Public Member Functions

 TypedMaterialParameter ()=default
 TypedMaterialParameter (TYPE &&value, Bool isConstant, UInt dynamicTimestamp, const InternedId &id)

Public Attributes

TYPE _value
Bool _isConstant
UInt _dynamicTimestamp
InternedId _id

Constructor & Destructor Documentation

◆ TypedMaterialParameter() [1/2]

Default constructor. Creates an empty parameter.

◆ TypedMaterialParameter() [2/2]

TypedMaterialParameter ( TYPE &&  value,
Bool  isConstant,
UInt  dynamicTimestamp,
const InternedId id 

Constructor a parameter with the provided typed data.

Member Data Documentation

◆ _value

TYPE _value

◆ _isConstant

Bool _isConstant

◆ _dynamicTimestamp

UInt _dynamicTimestamp

◆ _id