Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Command Console Window


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 Anddos   Members   -  Reputation: 515

Like
0Likes
Like

Posted 30 April 2014 - 10:49 PM

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..


:)

Sponsor:

#2 Endurion   Crossbones+   -  Reputation: 3681

Like
5Likes
Like

Posted 30 April 2014 - 11:04 PM

Usually they are not real HWNDs but simply self written in the game engine.

 

It's easier to completely control the layout if you do the drawing and behaviour yourself.

 

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


Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>

#3 Aardvajk   Crossbones+   -  Reputation: 6181

Like
1Likes
Like

Posted 02 May 2014 - 03:40 AM

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.



#4 Buckeye   Crossbones+   -  Reputation: 6192

Like
0Likes
Like

Posted 02 May 2014 - 03:04 PM


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, 02 May 2014 - 03:06 PM.

Please don't PM me with questions. Post them in the forums for everyone's benefit, and I can embarrass myself publicly.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS