I've read the online docs about DirectX rasterization rules but I still can't understand why doesn't this code produce anything visible on the screen?
target->SetAntialiasMode(D2D1_ANTIALIAS_MODE_ALIASED);
target->DrawLine(D2D1::Point2F(0.f, 0.f), D2D1::Point2F(10.f, 0.f), redBrush, 1.f);
Of course, if I change y from 0.0f to 1.0f for both line points I get a visible horizontal line at the top-left side of the Window client area but I would like to understand what principles are involved here. I couldn't figure them out from available documentation.