![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Newbie
Join Date: Mar 2006
Posts: 20
Rep Power: 0
![]() |
I've been learning OpenGl for the past week and just a few days ago I had to do this with the GLUT library. My solution is fairly brutish but it worked.
Anytime the Keyboard callback function is called, and the key pressed is A-Z (or whatever range of letters are valid for input) add the current letter to a global stringstream. When the keyboard callback function is called and the key is RETURN, empty the stringstream into the string variable that you will be working with. This is assuming your using GLUT. Out of curiosity, how long have you been working with OpenGL? |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to detect cursor location and insert text??? | syntax-error | C# | 3 | Jun 30th, 2005 1:42 AM |
| how do i automate text data and input into database? | lionel84 | C# | 0 | Jun 26th, 2005 9:35 PM |