Magnum::Trade::LightData class

Light data.

Public types

enum class Type: UnsignedByte { Infinite, Point, Spot }
Light type.

Constructors, destructors, conversion operators

LightData(Type type, const Color3& color, Float intensity, const void* importerState = nullptr) explicit constexpr noexcept
Constructor.
LightData(const LightData&) deleted
Copying is not allowed.
LightData(LightData&&) defaulted noexcept
Move constructor.

Public functions

auto operator=(const LightData&) -> LightData& deleted
Copying is not allowed.
auto operator=(LightData&&) -> LightData& defaulted noexcept
Move assignment.
auto type() const -> Type constexpr
Light type.
auto color() const -> Color3 constexpr
Light color.
auto intensity() const -> Float constexpr
Light intensity.
auto importerState() const -> const void*
Importer-specific state.

Enum documentation

enum class Magnum::Trade::LightData::Type: UnsignedByte

Light type.

Enumerators
Infinite

Light at position that is infinitely far away so its rays are parallel. The light rays point in a direction of negative Z axis.

Point

Point light, radiating in all directions

Spot

Spot light, radiating in a limited range of direction. The primary direction is negative Z axis.

Function documentation

Magnum::Trade::LightData::LightData(Type type, const Color3& color, Float intensity, const void* importerState = nullptr) explicit constexpr noexcept

Constructor.

Parameters
type Light type
color Light color
intensity Light intensity
importerState Importer-specific state

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

Importer-specific state.

See AbstractImporter::importerState() for more information.

Debug& operator<<(Debug& debug, LightData::Type value)

Debug output operator.