How can I provide a different rendering target to Direct2D?
Posted
by fingerprint211b
on Stack Overflow
See other posts from Stack Overflow
or by fingerprint211b
Published on 2010-04-16T10:56:38Z
Indexed on
2010/04/16
11:03 UTC
Read the original article
Hit count: 412
I'm using Direct2D in C# to render a small gui framework for my research project. I'm not very used to working on Windows or with DirectX. I'm using a Windows Forms control to create a render target, and msdn warns that since it uses BindDC, a the larger the rendering target, the worse the performance will be (which turned out to be a dramatic difference, when I maximize the window, I get around 15 fps).
What would be a better way to create a render target for Direct2D? Is there a way to create a window and render directly to it, instead of rendering to a control's buffer first, and then rendering that? If so, how?
Sorry if my English sucks, not my native language.
© Stack Overflow or respective owner