SetScissorRect()
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!
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
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);
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement