Platform SDK: DirectX |
Direct3D can clip primitives that render partially outside the viewport. When using C++, Direct3D clipping is controlled by the D3DRENDERSTATE_CLIPPING render state. Set this render state to TRUE (the default value) to enable primitive clipping. Set it to FALSE to disable Direct3D clipping services.
The primitive clipping render state is entirely independent of clipping operations that can be performed on vertices within a vertex buffer. The IDirect3DVertexBuffer7::ProcessVertices and IDirect3DVertexBuffer7::ProcessVerticesStrided methods accept their own flags to control primitive clipping during vertex processing.
Note This render state is analogous, albeit reciprocal, to the D3DDP_DONOTCLIP flag used in legacy rendering methods. This render state supersedes the D3DDP_DONOTCLIP flag for DirectX 7.0. Where the D3DDP_DONOTCLIP flag disabled clipping on a per-call basis, this render state affects all rendering calls until the state value is again changed by the application.
Direct3D can clip primitives that render partially outside the viewport. In a Visual Basic application, Direct3D clipping is controlled by the D3DRENDERSTATE_CLIPPING render state. Set this render state to True (the default value) to enable primitive clipping. Set it to False to disable Direct3D clipping services.
The primitive clipping render state is entirely independent of clipping operations that can be performed on vertices within a vertex buffer. The Direct3DVertexBuffer7.ProcessVertices method accepts flags to control primitive clipping during vertex processing.