I’m really new to OpenGL and I’ve come across something I can’t figure out. I’ve just started writing very simple OpenGL applications (like drawing shapes, rotating, colors etc…)
I am trying to use some IO with my current program. I want to draw a very basic picture in a
window. I want to be able to allow the user to enter in a number. Then I want to rotate my image that “number” of degrees in real time.
I know how to do all the graphical stuff, but I can’t figure out how to set up the IO for this. I tried putting some “cin/cout” statements in my code to prompt for input, but all I got was errors. I don’t want to use the mouse or have “hotkeys” on my keyboard for predetermined results. I want to be able to enter in data in one window using menu’s (like in a dos shell enviornment), and in another (simaltaneously open) window have the picture displayed and altered.
Is it even possible to set it up like that? I’m also pretty new to C++ (I use visual C++) My experience has been with console stuff. Any help at all would be greatly appreciated because my teacher doesn’t know how to do it in OpenGL (he want’s me to use the BGI library under Turbo C) and my book doesn’t cover it.
If you can help (on this board or in email), please explain it as simple as possible because I’m pretty new to programming in general. Thanks a lot!