Why don't Direct2D and DirectWrite use traditional COM objects?

Posted by David Brown on Stack Overflow See other posts from Stack Overflow or by David Brown
Published on 2010-05-14T21:53:39Z Indexed on 2010/05/14 23:34 UTC
Read the original article Hit count: 620

Filed under:
|
|
|
|

I'm toying with a little 2D game engine in C# and decided to use Direct2D and DirectWrite for rendering. I know there's the Windows API Code Pack and SlimDX, but I'd really like to dig in and write an interface from scratch. I'm trying to do it without Managed C++, but Direct2D and DirectWrite don't appear to use traditional COM objects. They define interfaces that derive from IUnknown, but there appears to be no way to actually use them from C# with COM interop. There are IIDs in d2d1.h, but no CLSID.

Of course, I'm really new to COM interop, so perhaps I'm just missing something. Can someone shed some light on this situation?

© Stack Overflow or respective owner

Related posts about direct2d

Related posts about directwrite