Click or drag to resize

PixelSizeDisplayCondition Constructor (Int32, Int32)

Initializes a pixel size display condition with the inclusive interval [minimumPixelSize, maximumPixelSize]. When this display condition is assigned to an object, such as a primitive, the object is only rendered when the number of pixels consumed by the object's bounding sphere, projected onto the screen, (or in the case of screen overlays, the area of its bounding rectangle) is within the interval.

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 21.2.409.0 (21.2.409.0)
Syntax
public PixelSizeDisplayCondition(
	int minimumPixelSize,
	int maximumPixelSize
)

Parameters

minimumPixelSize
Type: SystemInt32
The minimum pixel size of the inclusive interval.
maximumPixelSize
Type: SystemInt32
The maximum pixel size of the inclusive interval. Use Int32.MaxValue to ignore checking the maximum pixel size.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionminimumPixelSize and maximumPixelSize must be greater than or equal to zero.
See Also