• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 795
  • Last Modified:

How to create an input dialog to get user input in OpenGL

Hello experts,
Could someone tell me whether there is such a function in OpenGL so that i can get a string from user?
Thanks.
Alison
0
lzha022
Asked:
lzha022
  • 3
  • 2
1 Solution
 
NovaDenizenCommented:
Since OpenGL is a low-level toolkit, there are basically two choices here:
1.  Spend man-months on code to draw and implement every detail of the GUI stuff manually.
2.  Download & use an OpenGL GUI toolkit like http://www.bramstein.nl/gui/ or http://www.bramstein.nl/gui/ .   I'm not particularly recommending those two; I just googled for OpenGL GUI and they are among the first in the result.  
0
 
NovaDenizenCommented:
Actually, another way to go about it is to have a textual terminal window separate from your graphics window.  Then you could do basic scanf/printf for the user interface and display graphics separately.
0
 
lzha022Author Commented:
Hi NovaDenizen,
Thanks for your reply. Since you are not recommending the above two, i do not want to use them. What i need is just a simple input dialog. Is glut has such a function?
Thanks
Alison
0
 
NovaDenizenCommented:
There is no simple call to make in glut.  OpenGL is a very low-level protocol and it doesn't directly support complicated things like dialog boxes.  For things like that you should use an OpenGL GUI toolkit.

I'm not trying to say anything bad about those two GUI toolkits, its just that I've never used an OpenGL GUI toolkit so I can't say which one is best.
0
 
lzha022Author Commented:
okay then. Thanks a lot.
I will have a look of the toolkits.
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now