SetScissorRect()

Started by
0 comments, last by caesar4 18 years, 8 months ago
I'm not fully aware of the entire procedure required to get IDirect3DDevice9::SetScissorRect() working properly. I am creating a 2D game that requires clipping in a certain area, and I want to avoid doing the clipping myself. I believe this is the fastest method anyway (open to opinions). MSDN doesn't really discuss much on SetScissorRect, so that's why I'm posting here. I hope someone can help. Thanks!
Advertisement
i have found it to be much faster and easier than doing my own clipping and all gfx cards newer than 2000 seem to support it
i use it for all my GUI stuff

IDirect3DDevice9 *pDev;///pDev->SetRenderState(D3DRS_SCISSORTESTENABLE, TRUE); // caused me a little pain untill i figured it outpDev->SetScissorRect(&clipRect);// do things that require the clippingpDev->SetRenderState(D3DRS_SCISSORTESTENABLE , FALSE);
Cartman's definition of sexual harrasement:"When you are trying to have intercourse with a lady friend, and some other guy comes up and tickles your balls from behind"(watch South Park, it rocks)

This topic is closed to new replies.

Advertisement