c++ - Multiple render targets -


i creating d2dfactory with

d2d1createfactory(d2d1_factory_type_single_threaded, &direct2dfactory); 

and using direct2dfactory create render target on main window using:

direct2dfactory->createhwndrendertarget(     d2d1::rendertargetproperties(),     d2d1::hwndrendertargetproperties(windowhandle, size),     &rendertarget ); 

i attempting draw multiple classes multiple parts of window, @ minute, holding list of of these classes , calling onrender every 1 of them , passing rendertarget param.

is there better way this? can create more 1 render target, , render render targets main rendertarget?

what's current problem? boring of passing many render target parameters? think cheap creating multiple render targets, d3ddevice object in direct3d apps, every render-able class need device object manage resource , rendering work, common way pass device parameter each class instead of creating multiple devices. think on way.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -