AFX_GLOBAL_DATA::GetDirect2dFactory

Returns a pointer to the ID2D1Factory interface that is stored in the global data. If the interface is not initialized, it is created and has the default parameters.

ID2D1Factory* GetDirect2dFactory();

Return Value

A pointer to ID2D1Factory interface if creation of a factory succeeds, or NULL if creation fails or current Operation System don't have D2D support.

Requirements

Header: afxglobals.h

See Also

Reference

AFX_GLOBAL_DATA Structure