SurfaceMeshPrimitive Constructor (SetHint, SurfaceMeshRenderingMethod) |
Namespace: AGI.Foundation.Graphics
public SurfaceMeshPrimitive( SetHint setHint, SurfaceMeshRenderingMethod renderingMethod )
Exception | Condition |
---|---|
UnsupportedCaseException | setHint must be Infrequent or Frequent. Partial is not supported by this primitive. |
UnsupportedCaseException | renderingMethod must be a valid value in SurfaceMeshRenderingMethod. |
InsufficientVideoCardException | The surface mesh is not supported by this video card. Check Supported to determine if the surface mesh is supported. |
After constructing the primitive, call Set(SurfaceTriangulatorResult) to provide it with a mesh for rendering.
The primitive's properties are initialized to the following values:
Once the primitive is constructed, it must be added to Primitives before it will be rendered.