Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 7th, 2007, 10:03 PM   #11
Mcoy
Newbie
 
Mcoy's Avatar
 
Join Date: Mar 2006
Posts: 20
Rep Power: 0 Mcoy is on a distinguished road
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?
Mcoy is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:54 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC