sharpdx / SharpDX

SharpDX GitHub Repository
http://sharpdx.org
MIT License
1.69k stars 641 forks source link

How to create a DWrite.Factory2? #1027

Closed dontpanic92 closed 6 years ago

dontpanic92 commented 6 years ago

Hi there,

I noticed that for DWrite.Factory and DWrite.Factory1, there are constructors for creating the factories:

public Factory1();
public Factory1(FactoryType factoryType);
public Factory1(IntPtr nativePtr);

But for DWrite.Factory2, there is only one constructor:

public Factory2(IntPtr nativePtr);

Are the constructors not mapped? Or did I not get the correct way to create it?

Thanks

xoofx commented 6 years ago

Are the constructors not mapped? Or did I not get the correct way to create it?

Likely not mapped

xoofx commented 6 years ago

Though you may be able to get a IDWriteFactory2 from a Factory1 with a QueryInterface (haven't tried)

dontpanic92 commented 6 years ago

QueryInterface seems working. Thanks!

Closing the issue, but it would be appreciate if the constructors mapping could be added