Using Direct2D to do the HUD in D3D game
-
2012年5月31日 4:43
In previous engines I have always rendered text and other HUD elements using textured quads output in screen space.
Now I am considering Direct2D to do this, but wanted to ask is anybody using this approach in a Windows 8 D3D11 game?
I want to do at least somewhat fancy things like rotating HUD elements as they come on screen and into place so I don't know if that can be done in Direct2D or is it just axis-aligned Rect's?
Any insight from somebody who has already been down this path is greatly appreciated
www.puttnutz.com
すべての返信
-
2012年6月1日 0:43
Hi, you can apply any transform (D2D1_MATRIX_3X2_F) you want directly to an ID2D1RenderTarget or to an ID2D1BitmapBrush.
-
2012年6月2日 0:45
I still render text and other HUD elements to textures ( just RTT by D2D).
Draw every frame using D2D pulls down the FPS.
C++ DX11

