class
LightDataLight data.
Contents
Public types
-
enum class Type: UnsignedByte { Infinite,
Point,
Spot }
- Light type.
Constructors, destructors, conversion operators
Public functions
-
auto operator=(const LightData&) -> LightData& deleted
- Copying is not allowed.
-
auto operator=(LightData&&) noexcept -> LightData& defaulted
- 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
const void* Magnum:: Trade:: LightData:: importerState() const
Importer-specific state.
See AbstractImporter::
Debug& operator<<(Debug& debug,
LightData:: Type value)
Debug output operator.