interactive lua prompt in opengl application
Posted
by anon
on Stack Overflow
See other posts from Stack Overflow
or by anon
Published on 2010-05-06T22:31:22Z
Indexed on
2010/05/06
23:08 UTC
Read the original article
Hit count: 221
lua
Okay, so when I run lua, I get something like:
lua
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
>
Now, I want a prompt like this, 1) in a GUI application I've written.
My GUI application can provide functions like: get_input_from_screen(); and write_this_crap_out_to_screen(); and more functions I can write as necessary
I also know how to embed a lua interpreter in my C++ code (short tutorial on the web)
What I don't know .. is how to connect the input/output of a lua interpreter with my GUI stuff.
Any help/links apreciated.
Thanks!
© Stack Overflow or respective owner