I'm using C++. I saw [here](-here I should add the link-)
the code below on MSDN:
m_pRenderTarget->BeginDraw();
m_pRenderTarget->SetTransform(D2D1::Matrix3x2F::Identity());
m_pRenderTarget->Clear(D2D1::ColorF(D2D1::ColorF::White));
I wonder why they multiply with the identity matrix. It makes no change:
I * A = A
if A * B = C
. I * C = C
, not C * I = A
, so it's not C * I = A
, but my friend said if I SetTransform(identity)
, rendertarget becomes initial state.
Why do they multiply with the identity matrix?
I saw here this syntax is to be used when one wants to To remove the current transform
They say if you have: