• Advertisement
Sign in to follow this  

Command Console Window

This topic is 1359 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

Are these drop down windows just child windows to the main HWND?,i am talking about those console window you see in games such as counterstrike or battlefield,how are those created so the text is alligned etc..

Share this post


Link to post
Share on other sites
Advertisement

Funnily enough, I just wrote one. Its literally just an alpha-blended rectangle and text drawn with ID3DXFont over the top, using a vertex shader that takes screen coordinates as input. Nothing different to any other rendering.

Share this post


Link to post
Share on other sites

GDI does not really work well inside OpenGL or DirectX areas.

In DX9, using surf->GetDC(..) [ where surf is the backbuffer surface ], GDI works fine, when the drawing occurs after Present() for each render. EDIT: actually, it works fine between BeginScene and EndScene, also.

Edited by Buckeye

Share this post


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

  • Advertisement