Clipping of non Rects

Started by
1 comment, last by methe 16 years, 10 months ago
Hello, I'm trying to find if there is any way in DirectX to clip a given shape on the screen. For instance to clip a rotated rectangle along its borders. For those familiars it would be something like ::glClipPlane() in openGL. Any hint? thx.
"A man does what he does because he sees the world as he sees it." A.K
Advertisement
IDirect3DDevice9::SetClipPlane
SetRenderState(D3DRS_CLIPPLANEENABLE, ...);

and for software vertex processing there is also IDirect3DDevice9::SetClipStatus, which might just be a way of optimizing out the default view frustum planes when your own custom planes make them unnecessary.
Quick clean answer.
Just what I needed.
Thanks a lot.
"A man does what he does because he sees the world as he sees it." A.K

This topic is closed to new replies.

Advertisement