Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm writing a program in Visual Studio, C++ with OpenGL and for the first time, I think it will be beneficial to see some live data on top of my display/render window.

To give some scope, I'm developing a 3D world with a ball bouncing and it would be nice to see things like the current velocity and y-positions of various objects, amongst other things.

What method is a nice/effective way to display this type of information to a window? Is there any libraries, vs settings or third-party implementations that can be useful? (please excuse my naivety, I'm used to just cout << some info, on a console).

share|improve this question
    
You're not using a specific engine, right? –  Alexandre Vaillancourt Mar 4 at 18:55
2  
What's wrong with spawning a console window and outputting to that? –  Byte56 Mar 4 at 19:07
1  
@Byte56 I sometimes find it hard to follow data when there is a lot of things to output; it's sometimes hard to align data correctly in column, and when your data takes more than the usual 80 characters, well you get screwed a bit. Also, outputing to console may be more difficult when you have to output stuff coming from different places. –  Alexandre Vaillancourt Mar 4 at 19:29
2  
Well, you don't have to scroll the window. Just have it show info for the selected object and replace the output instead of scrolling. Otherwise, more information on the technology you're using would be good (any libraries, etc.) –  Byte56 Mar 4 at 19:31
1  
You may wish to use code similar to this to put the text on a bitmap: stackoverflow.com/questions/2309767/c-windows-bitmap-draw-text stackoverflow.com/questions/17132923/… –  Zehelvion Mar 4 at 19:32

2 Answers 2

Personally i have created a secondary GUI Layer and have a single class (c#) that handles all draw calls to this layer

information is passed in text format along with the sending object and the class organises the data before drawing it to screen

here is an exmple of the output

http://i.imgur.com/YeUWujS.png

share|improve this answer

AntTweakBar is nice for simple things, but C.

share|improve this answer
    
Some details would be appropriate. What is it? What does it do? Why is it good for this? –  Anko Mar 7 at 13:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.