Jump to content
  • Advertisement
Sign in to follow this  

Why my 2d text cann't be kept out?

This topic is 3627 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,everyone. I am new in d3d, my question is when i create a 2d text,it cann't be kept out by other scene,in other words,it always on the top of all the scenes. i create the 2d text as follows, first, declare: ID3DXFont* Font = 0; second, define a struct as D3DXFONT_DESC, D3DXFONT_DESC df; ZeroMemory(&df, sizeof(D3DXFONT_DESC)); Font->GetDesc(&df); df.Height = 12; df.Width = 0; df.Weight = FW_BOLD; df.MipLevels = D3DX_DEFAULT; df.Italic = false; df.CharSet = DEFAULT_CHARSET; df.OutputPrecision = OUT_DEFAULT_PRECIS; df.Quality = ANTIALIASED_QUALITY; df.PitchAndFamily = DEFAULT_PITCH; strcpy(df.FaceName, "黑体"); then, create it like this, D3DXCreateFontIndirect(Device, &lf, &Font); When i render it, it cann't be kept out by other secnes. Any suggestions? sorry for my poor english. Thanks!

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!