Magnum::Shaders::Generic::Color struct

Vertex color.

Color4, however defaults to Color3 if MAGNUM_BUILD_DEPRECATED is defined. See the constructor documentation for more information.

Base classes

template<UnsignedInt location, class T>
class Magnum::GL::Attribute
Base class for attribute location and type.

Constructors, destructors, conversion operators

Color(Components components, DataType dataType = DataType::Float, DataOptions dataOptions = {}) explicit constexpr
Constructor.
Color(DataType dataType = DataType::Float, DataOptions dataOptions = {}) deprecated explicit constexpr
Constructor.

Function documentation

Magnum::Shaders::Generic::Color::Color(Components components, DataType dataType = DataType::Float, DataOptions dataOptions = {}) explicit constexpr

Constructor.

Parameters
components Component count
dataType Type of passed data
dataOptions Data options

Magnum::Shaders::Generic::Color::Color(DataType dataType = DataType::Float, DataOptions dataOptions = {}) explicit constexpr

Constructor.