Link to home
Start Free TrialLog in
Avatar of lzha022
lzha022

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of NovaDenizen
NovaDenizen

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of NovaDenizen
NovaDenizen

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.
Avatar of lzha022

ASKER

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
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.
Avatar of lzha022

ASKER

okay then. Thanks a lot.
I will have a look of the toolkits.