Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Command Console Window

4: Adsense

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   

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


:)

#2 Endurion   Members   

5321
Like
5Likes
Like

Posted 30 April 2014 - 11:04 PM

*
POPULAR

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   Members   

13091
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   GDNet+   

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

You don't forget how to play when you grow old; you grow old when you forget how to play.





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.