njkilllergg
njkilllergg

Reputation: 3

I get no instance of overloaded function on CreateHwndRenderTarget

I'm trying to make a UI library for my game in DirectX 11 using DirectDraw and d2d1.

This part gives me the following error:

no instance of overloaded function "ID2D1Factory::CreateHwndRenderTarget" matches the argument list

I'm sure I set all the properties correctly.

d2dFactory->CreateHwndRenderTarget(
    D2D1::RenderTargetProperties(),
    D2D1::HwndRenderTargetProperties(hwnd, size),
    &d2dRenderTarget
);

Upvotes: -4

Views: 43

Answers (0)

Related Questions