Magnum::Ui::LineLayerCommonStyleUniform struct new in Git master

Properties common to all LineLayer style uniforms.

See the LineLayer class documentation for information about setting up an instance of the line layer and using it.

Together with one or more LineLayerStyleUniform instances contains style properties that are used by the LineLayer shaders to draw the layer data, packed in a form that allows direct usage in uniform buffers. Is uploaded using LineLayer::Shared::setStyle(), style data that aren't used by the shader are passed to the function separately.

Constructors, destructors, conversion operators

LineLayerCommonStyleUniform(DefaultInitT = DefaultInit) explicit constexpr noexcept
Construct with default values.
LineLayerCommonStyleUniform(Float smoothness) constexpr
Constructor.
LineLayerCommonStyleUniform(NoInitT) explicit noexcept
Construct without initializing the contents.

Public variables

Float smoothness
Edge smoothness radius.

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 setSmoothness(Float smoothness) -> LineLayerCommonStyleUniform& constexpr
Set the smoothness field.

Function documentation

LineLayerCommonStyleUniform& Magnum::Ui::LineLayerCommonStyleUniform::setSmoothness(Float smoothness) constexpr

Set the smoothness field.

Returns Reference to self (for method chaining)

Variable documentation

Float Magnum::Ui::LineLayerCommonStyleUniform::smoothness

Edge smoothness radius.

In pixels, i.e. setting the value to 1.0f will make the smoothing extend 1 pixel on each side of the edge. Default value is 0.0f. The bigger value between this and LineLayerStyleUniform::smoothness, converted to pixels, gets used.