Magnum::Shaders::VectorMaterialUniform struct new in Git master

Material uniform for vector shaders.

Describes material properties referenced from VectorDrawUniform::materialId.

Constructors, destructors, conversion operators

VectorMaterialUniform(DefaultInitT = DefaultInit) explicit constexpr noexcept
Construct with default parameters.
VectorMaterialUniform(NoInitT) explicit noexcept
Construct without initializing the contents.

Public variables

Color4 color
Fill color.
Color4 backgroundColor
Background color.

Convenience setters

Provided to allow the use of method chaining for populating a structure in a single expression, otherwise equivalent to accessing the fields directly. Also guaranteed to provide backwards compatibility when packing of the actual fields changes.

auto setColor(const Color4& color) -> VectorMaterialUniform&
Set the color field.
auto setBackgroundColor(const Color4& color) -> VectorMaterialUniform&
Set the backgroundColor field.

Function documentation

VectorMaterialUniform& Magnum::Shaders::VectorMaterialUniform::setColor(const Color4& color)

Set the color field.

Returns Reference to self (for method chaining)

VectorMaterialUniform& Magnum::Shaders::VectorMaterialUniform::setBackgroundColor(const Color4& color)

Set the backgroundColor field.

Returns Reference to self (for method chaining)

Variable documentation

Color4 Magnum::Shaders::VectorMaterialUniform::color

Fill color.

Default is 0xffffffff_rgbaf.

Color4 Magnum::Shaders::VectorMaterialUniform::backgroundColor

Background color.

Default is 0x00000000_rgbaf.