Jump to content
  • Advertisement
Sign in to follow this  
daniel_i_l

OpenGL Input/Output

This topic is 4423 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Opengl doesn't do input.

You could use the win32 API as you're on windows, or directinput, or SDL, or several other things.

In general input is provided by the OS interaction layer you use.

Share this post


Link to post
Share on other sites
I'm using the windows API, but I can only input single letters or numbers, how do I input strings or longer numbers?
Thanks.

Share this post


Link to post
Share on other sites
Well if you can get each key the user presses then you can get strings by putting the characters together. E.g. keep adding keys the user presses to a string (you'll need to handle non-printable keys, like the arrow keys) until they hit enter or something.

Share this post


Link to post
Share on other sites
I'd strongly suggest moving away from the Windows API and using a third party library like GLFW or FreeGLUT. Using these frameworks will not only make your life easier, but also let you port your applications to platforms other then Windows.

Share this post


Link to post
Share on other sites
I do not think that glut is available on every platform, for example I do not think that OpenGL ES support glut librairy.

Share this post


Link to post
Share on other sites
Before talking about how to input characters, the question is: How do you want to display the characters?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!