Hello All!
I use OpenGL for small research applications. In many cases, I need to control a few variables, and I either use GLUI or just glut and a very simply keyboard interface.
However, games and some graphics applications have a nice feature where you simply hit the terminal key in order to get a text interface where you can issue commands and change variables in your program. If such a console is of variable size and overlayed it could also be used to display things like framerate and other state.
See, this is where I get greedy. If I could also script in LUA or Python in such a beast, I would have an awesome flexibility.
Of course there are OpenGL bindings for anything you can code in, so I could just change my apps to libraries and run them from a scripting console.
However, that is not what I want. I want a console embedded in my application. The input and output should be via the same window that displays OpenGL and the input and output should go to/come from a script engine that has access to my C++ program state.
I know some people have made consoles (eg there is one for SDL) and it is arguably not an enormous task to make a simple console, but it only becomes elegant when IO is funneled to a scripting engine that can see the state of the program.
Is there some beast like that?
Thanks
Cheers
Andreas