Original Post
I'm trying to change the background color during runtime with my DirectX program. From blue to black to blue to black and so on. I know how to change the color with this:
d3ddev->Clear(0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(0, 40, 100), 1.0f, 0); to black or whatever color I want and I've tried using that function and change colors under a certain condition but I can't get it to work. It stays the same color during runtime. Can anyone help me get this to work? thanks!