Search code examples
c++scrolldirectxdirectx-9

How to cut object in directx 9


I'm trying to make a scrollbar in my DirectX 9 application, but I don't know how to cut objects when they are hitting end of the panel where elements with scroll bar placed at. How can I do that?


Solution

  • It looks like you want to cut objects going outside of some rectangular area with scrollbar. In this case you can enable Scissor Test.