Magnum::Trade::AbstractMaterialData class

Base for material data.

Subclasses provide access to parameters for given material type.

Derived classes

class PhongMaterialData
Phong material data.

Constructors, destructors, conversion operators

AbstractMaterialData(const AbstractMaterialData&) deleted
Copying is not allowed.
AbstractMaterialData(AbstractMaterialData&&) noexcept defaulted
Move constructor.
AbstractMaterialData(MaterialType type, const void* importerState = nullptr) protected explicit noexcept
Constructor.

Public functions

auto operator=(const AbstractMaterialData&) -> AbstractMaterialData& deleted
Copying is not allowed.
auto operator=(AbstractMaterialData&&) noexcept -> AbstractMaterialData& defaulted
Move assignment.
auto type() const -> MaterialType
Material type.
auto importerState() const -> const void*
Importer-specific state.

Function documentation

Magnum::Trade::AbstractMaterialData::AbstractMaterialData(MaterialType type, const void* importerState = nullptr) explicit protected noexcept

Constructor.

Parameters
type Material type
importerState Importer-specific state

const void* Magnum::Trade::AbstractMaterialData::importerState() const

Importer-specific state.

See AbstractImporter::importerState() for more information.