Scope
d2d::d2dfactory< policy_class > Class Template Reference

#include <d2wrap.h>

Public Member Functions

 d2dfactory ()
 
 ~d2dfactory ()
 

Public Attributes

ID2D1Factory * pd2d_factory
 
HRESULT hr
 

Detailed Description

template<D2D1_FACTORY_TYPE policy_class>
class d2d::d2dfactory< policy_class >

Simple wrapper around a Direct2D factory.

Definition at line 39 of file d2wrap.h.

Constructor & Destructor Documentation

template<D2D1_FACTORY_TYPE policy_class>
d2d::d2dfactory< policy_class >::d2dfactory ( )
inline

Create the factory and initialize the global DPIScale object, if debug build activate Direct2D debug layer.

Definition at line 48 of file d2wrap.h.

template<D2D1_FACTORY_TYPE policy_class>
d2d::d2dfactory< policy_class >::~d2dfactory ( )
inline

Safely release the factory.

Definition at line 64 of file d2wrap.h.

Member Data Documentation

template<D2D1_FACTORY_TYPE policy_class>
ID2D1Factory* d2d::d2dfactory< policy_class >::pd2d_factory

Direct2D factory (do not use a unique_ptr for COM interfaces)

Definition at line 42 of file d2wrap.h.

template<D2D1_FACTORY_TYPE policy_class>
HRESULT d2d::d2dfactory< policy_class >::hr

for error logging

Definition at line 45 of file d2wrap.h.


The documentation for this class was generated from the following file: