ILineThickness

Description

interface Tinman.Engine.Rendering.ILineThickness

Derived from

ILineFeatureLevels

Extended by

Graphics sealed
Renderer sealed

Base interface for classes that allow to choose a thickness for rendering lines.

Public / Attributes

Line​Thickness


public attribute LineThickness → (get,set)

value : float32

The line thickness, in pixels. Will be clamped to the range [1..n], where n is the maximum line thickness, as defined by ILineFeatureLevels.FeatureLevel.

The line thickness to use for rendering Primitive.LineList, Primitive.LineStrip and Primitive.PointList primitives.

When set to 1, lines and points are rendered with a thickness of one screen pixel, using the alpha channel for transparency.

When set to value greater than 1, lines are rendered with the given thickness and points are rendered as circles with the given thickness as diameter. The alpha channel is ignored.

As best practice, reset the line thickness to the default value after rendering thick geometry, preferably by calling ILineThickness.LineThicknessReset.

Defaults to 1.

Extensions

Line​Thickness​Reset


public static method LineThicknessReset → ()

Resets the ILineThickness.LineThickness value to its default value.