rate up
0
rate down
a single question about the function "ClearRenderTargetView()"
At the top of the **DrawScene** function,author wrote this: //Clear our backbuffer float bgColor[4] = { (0.0f, 0.0f, 0.0f, 0.0f) }; d3d11DevCon->ClearRenderTargetView(renderTargetView, bgColor); i try to change the elements which in **bgColor** array,like that: float bgColor[4] = { (0.0f, 1.0f, 0.0f, 0.0f) }; but it doesn't work,i tried a lot of different changes,still the same. i wonder know why!thanks!
Chosen Answer
rate up
0
rate down
I assume you mean the background color is not changing. Am wondering is anything else drawn as it should since I think if clear screen is not working correctly than all other stuff should be drawn in a inproper way
Comments
Sorry,i reply you after a long time.As you say,all the other stuff are drawn correctly when the screen was clear in a proper way.
on Sep 09 `19
adonis
So you fix that or the problem still exists?
on Sep 09 `19
maxiorek82
Sign in to answer!