ludus::graphics::renderer::SelectionOutlineStyle¶
Ludus Wiki · API overview · Browse API
Struct
Strokes of a selection outline. Widths are physical pixels of the target, so a caller on a scaled display multiplies the logical width by the device pixel ratio.
Declared in modules/graphics/renderer/include/ludus/graphics/renderer/selection_outline.hpp
#include <ludus/graphics/renderer/selection_outline.hpp>
struct ludus::graphics::renderer::SelectionOutlineStyle final
Fields¶
OutlineColor¶
foundation::math::Vector4 ludus::graphics::renderer::SelectionOutlineStyle::OutlineColor {1, 1, 1, 1}
Straight RGBA of the main stroke, each component in [0,1], written as display-encoded values.
Related types: foundation::math::Vector4
Declared in modules/graphics/renderer/include/ludus/graphics/renderer/selection_outline.hpp
CasingColor¶
foundation::math::Vector4 ludus::graphics::renderer::SelectionOutlineStyle::CasingColor {0, 0, 0, 0}
Straight RGBA of the stroke drawn under it, each component in [0,1], so the outline reads on bright and dark pixels alike. Alpha zero omits the casing.
Related types: foundation::math::Vector4
Declared in modules/graphics/renderer/include/ludus/graphics/renderer/selection_outline.hpp
OutlineWidthPixels¶
foundation::float32 ludus::graphics::renderer::SelectionOutlineStyle::OutlineWidthPixels = 2
Width of the main stroke, centred on the silhouette: positive, at most MAX_STROKE_WIDTH_PIXELS.
Related types: foundation::float32
Declared in modules/graphics/renderer/include/ludus/graphics/renderer/selection_outline.hpp
CasingWidthPixels¶
foundation::float32 ludus::graphics::renderer::SelectionOutlineStyle::CasingWidthPixels = OutlineWidthPixels * 2
Width of the casing stroke, centred on the silhouette: at least OutlineWidthPixels and at most MAX_STROKE_WIDTH_PIXELS.
Related types: foundation::float32
Declared in modules/graphics/renderer/include/ludus/graphics/renderer/selection_outline.hpp