PrimitiveManager Class |
Namespace: AGI.Foundation.Graphics
The PrimitiveManager type exposes the following members.
Name | Description | |
---|---|---|
Count |
Gets the number of primitives in the manager.
| |
PrecisionExponent | Obsolete.
Gets or sets the exponent used to compute the maximum precision for primitive
rendering. For example, a value of -3 indicates the maximum precision of 2^-3,
0.125 m along the x, y, or z axis. The worst case precision, taking into
account all axes, is sqrt(3 * (2^-3)^2), 0.2165 m. The default is -2.
| |
TranslucentPrimitivesSortOrder |
Gets or sets the sort order for translucent primitives in the primitive manager.
This determines a trade-off between rendering speed and quality. It
is only recommended to use
PrimitivesSortOrderBackToFront
when translucent primitives along the same line of sight cause blending artifacts.
|
Name | Description | |
---|---|---|
Add |
Adds a primitive to the manager. Primitives must be added to the manager to be rendered.
| |
Clear |
Removes all primitives from the manager.
| |
Contains |
Determines whether the manager contains a primitive.
| |
Dispose | ||
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetEnumerator |
Returns an enumerator that iterates through the collection.
The order of the primitives is not guaranteed to be the order
that the primitives were added.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Remove |
Removes a primitive from the manager. The primitive is no longer rendered
unless it is added back into the manager.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |