Joe += smart
December 7th, 2008, 08:39 AM
I am trying to write a program that uses mainly windows code, but has a small area of the window devoted to direct3d graphics. How would I tell direct3d to only use part of the window? I tried using SetViewPort(), but direct3d drew random garbage in front of the windows stuff. It worked fine in the viewport area, but it put random crap from memory in the rest of the window. Then there was flickering when windows tried unsuccessfully to draw in front of the random crap. Can someone explain a way to have direct3d only put stuff in a part of the window?