Sign in to follow this  
methe

OpenGL Clipping of non Rects

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this