Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

Microsoft® Direct3D® Mobile is capable of clipping all primitives to the view frustum. Clipping is enabled via the D3DMRS_CLIPPING render state (see D3DMRENDERSTATETYPE).

Point primitives can only be clipped by entirely discarding them. Line primitives can be clipped by trimming them into shorter lines or by discarding them entirely. When a triangle is clipped, the result can either be the creation of more triangles, or the result can be to discard the triangle entirely.

The D3DMRS_CLIPPING render state has no effect on vertices that have already been transformed and lit.

All drivers must support scissoring to the screen. Scissoring is the operation where rasterized pixel locations are tested against the dimensions of the render target. The pixel is discarded if it falls outside the viewport.

Clipping Status

If the D3DMVTXPCAPS_CLIPSTATUS capability bit (see D3DMVTXPCAPS Values), is set then it is possible for the application to query the clipping status of the previous primitive processing operation made though a call to either the IDirect3DMobileDevice::DrawPrimitivemethod or the IDirect3DMobileDevice::ProcessVerticesmethod. To determine the result of the clipping operation, applications call the IDirect3DMobileDevice::GetClipStatusmethod. This method takes a pointer to a D3DMCLIPSTATUSstructure that is filled out from the driver's internal data structures.

The application may also reset the driver's internal data structures using the IDirect3DMobileDevice::SetClipStatusmethod. This allows the driver to start processing with a known starting value. The driver will then AND and OR the appropriate bits into the structure as primitives are processed.

See Also

500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.