Forgive the code below, I'm quite out my depth with DirectX and really struggling to conceptualise the different parts. I'm trying to achieve this through SharpDX. I've managed to (in other code) render rectangles, images and text to screen without too much difficulty. However, these all leverage RenderTaget to draw [...] read more
My goal is to draw a geometry path in a render target provided by a ID2D1DeviceContext. I have an ID2D1Factory created by D2D1CreateFactory and the following code fails: CComPtr<ID2D1PathGeometry> m_pPathGeometry; fa->CreatePathGeometry(&m_pPathGeometry); CComQIPtr<ID2D1SolidColorBrush> b; D2D1_COLOR_F cc = { 1.0f,1.0f,1.0f,1.0f }; pRT->CreateSolidColorBrush(cc, &b); pRT->FillGeometry(m_pPathGeometry, b); When calling pRT->EndDraw(), I get a message [...] read more