Using Direct2D to do the HUD in D3D game RRS feed

  • Question

  • 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


    Thursday, May 31, 2012 4:43 AM

All replies

  • Hi, you can apply any transform (D2D1_MATRIX_3X2_F) you want directly to an ID2D1RenderTarget or to an ID2D1BitmapBrush.

    Friday, June 1, 2012 12:43 AM
  • 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

    Saturday, June 2, 2012 12:45 AM