PDA

View Full Version : input / output in opengl application



matrixh725
09-29-2003, 11:51 PM
Hello to all.
I'm writing my game using Opengl under win32 api system. My problem is this: when you get to the save page(in order to save your game) I'd like to allow user to write its name, using keyboard.so, how can I use functions as putchar or cin or similar commands in an opengl application? please, help me, thanks!

SirKnight
09-30-2003, 04:48 AM
OpenGL is a 3d graphics API, it has nothing to do with input. It won't interfere with your input functions.

BTW, next time try the beginner forum. This is the ADVANCED.

-SirKnight

[This message has been edited by SirKnight (edited 09-30-2003).]

matrixh725
09-30-2003, 12:10 PM
thank you for the advice, but I didn't understand: can I use input in opengl or not?

Jan
09-30-2003, 12:23 PM
Originally posted by SirKnight:
it has nothing to do with input

azcoder
09-30-2003, 06:19 PM
OpenGL has nothing to do with input.

You can use any input mechanism you want. If you want cross-platform game input, I suggest you try SDL at www.libsdl.org. (http://www.libsdl.org.)